Also check SIGs COMPOSE_ID for centos

Signed-off-by: Adrian Reber <adrian@lisas.de>
This commit is contained in:
Adrian Reber 2022-01-11 17:02:32 +01:00
parent 0a7ac90878
commit 41b2d49e3c
No known key found for this signature in database
GPG key ID: 82C9378ED3C4906A

View file

@ -44,9 +44,14 @@ else
fi
if [ "${1}" == "centos" ]; then
FFTL="http://mirror.stream.centos.org/9-stream/COMPOSE_ID"
FFTL="http://centos-master01.iad2.fedoraproject.org/9-stream/COMPOSE_ID"
FILEDATE=`date +%s -d"$( curl -s --head ${FFTL} | awk 'BEGIN {FS=": "}/^Last-Modified/{print $2}' )"`
FFTL_SIGS="http://centos-master01.iad2.fedoraproject.org/SIGs/9-stream/COMPOSE_ID"
FILEDATE_SIGS=`date +%s -d"$( curl -s --head ${FFTL_SIGS} | awk 'BEGIN {FS=": "}/^Last-Modified/{print $2}' )"`
if [ "$FILEDATE_SIGS" -gt "$FILEDATE" ]; then
FILEDATE=$FILEDATE_SIGS
FFTL=$FFTL_SIGS
fi
elif [ "${1}" == "codecs" ]; then
FFTL="${CATEGORY}"
FILEDATE=${CURDATE}
@ -60,6 +65,11 @@ else
fi
fi
# Rerun scan after 24 hours
if [ "$FILEDATE" -lt $(expr $CURDATE - 86400) ]; then
LASTRUN=0
fi
if [ "$LASTRUN" -gt "$FILEDATE" ]; then
# no changes on the master mirror
# abort