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