diff --git a/cp2mirror b/cp2mirror index 062b397..14fb8e3 100755 --- a/cp2mirror +++ b/cp2mirror @@ -17,8 +17,12 @@ fi for VERSION in `ls -A $MIRRORPATH/mageia/distrib` do echo "$MIRRORPATH/mageia/distrib/$VERSION" - - rsync -aP $APP_PATH/SRPMS/*.mga"$VERSION".* $MIRRORPATH/lalis/$VERSION/SRPMS/core/updates/ + if [ "$VERSION" -eq "cauldron" ]; then + VSTRING="cauldron" + else + VSTRING="mga$VERSION" + fi + rsync -aP $APP_PATH/SRPMS/*."$VSTRING".* $MIRRORPATH/lalis/$VERSION/SRPMS/core/updates/ if [ -e "$APP_PATH/RPMS/noarch" ]; then NOARCH=1