1
0
This commit is contained in:
Daniel Tartavel 2019-06-30 13:03:04 +02:00
parent 270a27b851
commit 58460b9524

View File

@ -8,19 +8,20 @@ echo `pwd`
for DIR in `ls -A $MIRROR/mageia/distrib` for DIR in `ls -A $MIRROR/mageia/distrib`
do do
for ARCH in $ARCHLIST;do if [ -d "$DIR" ]; then
if [ "$ARCH" = "SRPMS" ]; then for ARCH in $ARCHLIST;do
MEDIA=""; if [ "$ARCH" = "SRPMS" ]; then
else MEDIA="";
MEDIA="/media" else
fi MEDIA="/media"
for k in $DEPOT; do fi
echo "./mageia/lalis/$DIR/$ARCH$MEDIA/core/$k" for k in $DEPOT; do
mkdir -p "./mageia/lalis/$DIR/$ARCH$MEDIA/core/$k" echo "./lalis/$DIR/$ARCH$MEDIA/core/$k"
if ! [ -z "$MEDIA" ]; then mkdir -p "./lalis/$DIR/$ARCH$MEDIA/core/$k"
echo "generation des medias" if ! [ -z "$MEDIA" ]; then
mkdir -p "./mageia/lalis/$DIR/$ARCH$MEDIA/media_info" echo "generation des medias"
printf "[media_info] mkdir -p "./lalis/$DIR/$ARCH$MEDIA/media_info"
printf "[media_info]
version=$DIR version=$DIR
mediacfg_version=2 mediacfg_version=2
branch=Official branch=Official
@ -74,8 +75,9 @@ name=Core Updates Sources
noauto=1 noauto=1
rpms=core/updates rpms=core/updates
">"./mageia/lalis/$DIR/$ARCH$MEDIA/media_info/media.cfg" ">"./mageia/lalis/$DIR/$ARCH$MEDIA/media_info/media.cfg"
fi fi
gendistrib --nobadrpm --blind --skipmissingdir "./mageia/lalis/$DIR/$ARCH$MEDIA/core/$k" gendistrib --nobadrpm --blind --skipmissingdir "./mageia/lalis/$DIR/$ARCH$MEDIA/core/$k"
done
done done
done fi
done done