bug
This commit is contained in:
parent
270a27b851
commit
58460b9524
36
mkmirrortree
36
mkmirrortree
@ -7,20 +7,21 @@ cd "$MIRROR"
|
|||||||
echo `pwd`
|
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
|
||||||
|
Reference in New Issue
Block a user