From 8cb8943b4cca5e2ca71165d62a8dc6e53cced818 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sun, 30 Jun 2019 18:00:17 +0200 Subject: [PATCH] bug avec les depots cauldron --- cp2mirror | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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