get the correct pkg name
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Tue, 20 Apr 2010 16:31:12 +0000 (16:31 +0000)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Tue, 20 Apr 2010 16:31:12 +0000 (16:31 +0000)
plc.d/packages

index 06083fd..5afe7bf 100755 (executable)
@@ -48,16 +48,19 @@ case "$1" in
         ### pacakges to each repository to be able to create different
         ### flavours of vservers on nodes
         for repository1 in $repositories; do
+            DISTRO=${PLC_FLAVOUR_SLICE_PLDISTRO}
+            VSERVER_PKG=vserver-$(basename $repository1)
+            VSERVER_SYS_SLICES_PKG=vserver-systemslices-$(basename $repository1)
             for repository2 in $repositories; do
-                if [[ $(basename $repository1) == ${PLC_FLAVOUR_NODE_PLDISTRO}* ]]  \
-                    && [[ $(basename $repository2) == ${PLC_FLAVOUR_NODE_PLDISTRO}* ]] \
+                if [[ $(basename $repository1) == ${DISTRO}* ]]  \
+                    && [[ $(basename $repository2) == ${DISTRO}* ]] \
                     && [[ $repository1 != $repository2 ]] ; then
-                    cp -a $repository1/vserver{,-systemslices}-${PLC_FLAVOUR_NODE_PLDISTRO}* $repository2
+                        cp -a $repository1/${VSERVER_PKG}* $repository2
+                        cp -a $repository1/${VSERVER_SYS_SLICES_PKG}* $repository2
                 fi
             done
         done
 
-
        for repository in $repositories ; do
            # the rpms that need signing
            new_rpms=