encore
This commit is contained in:
parent
4cb9125535
commit
15bc467374
54
cp2mirror
54
cp2mirror
@ -16,34 +16,36 @@ fi
|
|||||||
|
|
||||||
for VERSION in `ls -A $MIRRORPATH/mageia/distrib`
|
for VERSION in `ls -A $MIRRORPATH/mageia/distrib`
|
||||||
do
|
do
|
||||||
echo "$MIRRORPATH/mageia/distrib/$VERSION"
|
if [ -d "$MIRRORPATH/mageia/distrib/$VERSION" ]; then
|
||||||
if [ "$VERSION" = "cauldron" ]; then
|
echo "$MIRRORPATH/mageia/distrib/$VERSION"
|
||||||
VSTRING="cauldron"
|
if [ "$VERSION" = "cauldron" ]; then
|
||||||
else
|
VSTRING="cauldron"
|
||||||
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
|
|
||||||
fi
|
|
||||||
|
|
||||||
for i in $ARCH; do
|
|
||||||
if [ $NOARCH ]; then
|
|
||||||
echo "noarch"
|
|
||||||
ARCH_O="noarch"
|
|
||||||
else
|
else
|
||||||
echo "arch"
|
VSTRING="mga$VERSION"
|
||||||
ARCH_O=$i
|
|
||||||
fi
|
fi
|
||||||
if [ -e "$APP_PATH/RPMS/$ARCH_O/" ]; then
|
rsync -aP $APP_PATH/SRPMS/*."$VSTRING".* $MIRRORPATH/lalis/$VERSION/SRPMS/core/updates/
|
||||||
if ! [ -e "$MIRRORPATH/lalis/$VERSION/$i/media/core/updates/" ]; then
|
|
||||||
/usr/bin/mkdir -p "$MIRRORPATH/lalis/$VERSION/$i/media/core/updates/"
|
if [ -e "$APP_PATH/RPMS/noarch" ]; then
|
||||||
|
NOARCH=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
for i in $ARCH; do
|
||||||
|
if [ $NOARCH ]; then
|
||||||
|
echo "noarch"
|
||||||
|
ARCH_O="noarch"
|
||||||
|
else
|
||||||
|
echo "arch"
|
||||||
|
ARCH_O=$i
|
||||||
fi
|
fi
|
||||||
echo "rsync -aP $APP_PATH/RPMS/$ARCH_O/*.mga"$VERSION".* $MIRRORPATH/lalis/$VERSION/$i/media/core/updates/"
|
if [ -e "$APP_PATH/RPMS/$ARCH_O/" ]; then
|
||||||
rsync -aP $APP_PATH/RPMS/$ARCH_O/*.mga"$VERSION".* $MIRRORPATH/lalis/$VERSION/$i/media/core/updates/
|
if ! [ -e "$MIRRORPATH/lalis/$VERSION/$i/media/core/updates/" ]; then
|
||||||
gendistrib --nobadrpm --blind --skipmissingdir $MIRRORPATH/lalis/$VERSION/$i
|
/usr/bin/mkdir -p "$MIRRORPATH/lalis/$VERSION/$i/media/core/updates/"
|
||||||
fi
|
fi
|
||||||
done
|
echo "rsync -aP $APP_PATH/RPMS/$ARCH_O/*.mga"$VERSION".* $MIRRORPATH/lalis/$VERSION/$i/media/core/updates/"
|
||||||
|
rsync -aP $APP_PATH/RPMS/$ARCH_O/*.mga"$VERSION".* $MIRRORPATH/lalis/$VERSION/$i/media/core/updates/
|
||||||
|
gendistrib --nobadrpm --blind --skipmissingdir $MIRRORPATH/lalis/$VERSION/$i >/dev/null
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user