X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=bin%2Fdaily;h=0a67587bc36d49135f9ff2c73848ac1464077b95;hb=4cb36e543bb889e040b1c95b6d697582e28eeec2;hp=0d5afb414557cf7a89b9fa989070183b8ddb27d7;hpb=f7dae3f81707c8cab707df20ba2742a0087baf33;p=deb%2Fpackages.git diff --git a/bin/daily b/bin/daily index 0d5afb4..0a67587 100755 --- a/bin/daily +++ b/bin/daily @@ -19,7 +19,7 @@ # Should run after the mirror pulse. The mirror tends to finish by # the ctime of rsync.log.* in ~archvsync. -topdir=/org/packages.debian.org +source config.sh files=$topdir/files logs=$files/logs log=$logs/cron.log @@ -37,9 +37,17 @@ date > $log if lockfile -600 -r5 "${files}/cron.lock" >> $log 2>&1 then run-parts --verbose $topdir/cron.d >> $log 2>&1 + rm -f "${files}/cron.lock" else - echo "couldn't aquire lock file in due time" >> $log + echo "couldn't aquire cron lock file in due time" >> $log fi -rm -f "${files}/cron.lock" +date >> $log +if lockfile -600 -r5 "${files}/changelogs.lock" >> $log 2>&1 +then + $topdir/bin/extract_changelogs >> $log 2>&1 + rm -f "${files}/changelogs.lock" +else + echo "couldn't aquire changelogs lock file in due time" >> $log +fi date >> $log