1
0

ajout debuggage

This commit is contained in:
Daniel Tartavel 2020-04-12 11:38:35 +02:00
parent 1cf9a41cc1
commit 8b553bfe4e

View File

@ -11,12 +11,23 @@ for X in 7 8
fi fi
for ARCH in x86_64 i586 #aarch64 armv7hl for ARCH in x86_64 i586 #aarch64 armv7hl
{ {
rsync -aP RPMS/noarch/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/ if [ -d RPMS/$ARCH ]; then
if [ $? -ne 0 ]; then echo "rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/"
echo "error rsync : $LINENO" rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/
exit 1 if [ $? -ne 0 ]; then
fi echo "error rsync : $LINENO"
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir --mediacfg $MIRRORPATH/$X/$ARCH/media/media_info/media.cfg $MIRRORPATH/$X/$ARCH exit 1
fi
fi
if [ -d RPMS/noarch ]; then
echo "rsync -aP RPMS/noarch/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/"
rsync -aP RPMS/noarch/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/
if [ $? -ne 0 ]; then
echo "error rsync : $LINENO"
exit 1
fi
fi
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir --mediacfg $MIRRORPATH/$X/$ARCH/media/media_info/media.cfg $MIRRORPATH/$X/$ARCH
} }
} }
chmod a+rX -R . chmod a+rX -R .