40-autodist-upstream-updates daily cron: don't run if AUTOPORT_UPDATE_NO_DISTROMATIC is set

This commit is contained in:
Silvan Calarco 2014-06-10 01:52:14 +02:00
parent a66a8f8029
commit 1da0a6d971

View File

@ -1,9 +1,12 @@
#!/bin/bash #!/bin/bash
# #
# autodist-upstream-updates daily cron script # autodist-upstream-updates daily cron script
# (c) 2008-2012 by Silvan Calarco <silvan.calarco@mambasoft.it> # (c) 2008-2014 by Silvan Calarco <silvan.calarco@mambasoft.it>
# #
. /etc/autodist/config . /etc/autodist/config
. /etc/sysconfig/autoport
if [ ! "$AUTOPORT_UPDATE_NO_DISTROMATIC" ]; then
REPOSITORY=devel REPOSITORY=devel
/usr/sbin/autodist-upstream-updates -q -h -u -r $REPOSITORY > $LOCAL_REPS_BASE_DIR/distromatic/$REPOSITORY/_popular.html /usr/sbin/autodist-upstream-updates -q -h -u -r $REPOSITORY > $LOCAL_REPS_BASE_DIR/distromatic/$REPOSITORY/_popular.html
@ -12,5 +15,6 @@ REPOSITORY=milestone1-1.1
REPOSITORY=milestone2 REPOSITORY=milestone2
/usr/sbin/autodist-upstream-updates -q -h -u -r $REPOSITORY > $LOCAL_REPS_BASE_DIR/distromatic/$REPOSITORY/_popular.html /usr/sbin/autodist-upstream-updates -q -h -u -r $REPOSITORY > $LOCAL_REPS_BASE_DIR/distromatic/$REPOSITORY/_popular.html
fi
exit 0 exit 0