From 8f30015131355ac2466573c6e3efac3b9976240e Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sun, 30 Jun 2019 15:21:13 +0200 Subject: [PATCH] fonctionnel --- mkmirrortree | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mkmirrortree b/mkmirrortree index b3082df..bbe77b5 100755 --- a/mkmirrortree +++ b/mkmirrortree @@ -8,6 +8,7 @@ echo `pwd` for DIR in `ls -A $MIRROR/mageia/distrib` do + echo "$MIRROR/mageia/distrib/$DIR" if [ -d "$MIRROR/mageia/distrib/$DIR" ]; then for ARCH in $ARCHLIST;do if [ "$ARCH" = "SRPMS" ]; then @@ -18,7 +19,7 @@ do for k in $DEPOT; do echo "./lalis/$DIR/$ARCH$MEDIA/core/$k" mkdir -p "./lalis/$DIR/$ARCH$MEDIA/core/$k" - if ! [ -z "$MEDIA" ]; then + if ! [ -z "$MEDIA" ] && ! [ -e "./lalis/$DIR/$ARCH$MEDIA/media_info" ]; then echo "generation des medias" mkdir -p "./lalis/$DIR/$ARCH$MEDIA/media_info" printf "[media_info] @@ -74,7 +75,7 @@ media_types=official:free:updates:source name=Core Updates Sources noauto=1 rpms=core/updates -">"./mageia/lalis/$DIR/$ARCH$MEDIA/media_info/media.cfg" +">"./lalis/$DIR/$ARCH$MEDIA/media_info/media.cfg" fi #gendistrib --nobadrpm --blind --skipmissingdir "./mageia/lalis/$DIR/$ARCH$MEDIA/core/$k" done