From 4188312716f940a3ed1db294dd28604734f61d98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Tue, 20 Apr 2010 16:31:12 +0000 Subject: [PATCH] get the correct pkg name --- plc.d/packages | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/plc.d/packages b/plc.d/packages index 06083fd..5afe7bf 100755 --- a/plc.d/packages +++ b/plc.d/packages @@ -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= -- 2.43.0