X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=bin%2Fdaily;h=2c54efef2e15c2f03b151d9b10d14e216bb7fbd0;hp=e4325939328f5cc1139a2ce7c995d553f03ff507;hb=d833a5eed5296d1a24c35e8f0802f8291037198d;hpb=264b1245548e5c5494778a813e5e48897168b008 diff --git a/bin/daily b/bin/daily index e432593..2c54efe 100755 --- a/bin/daily +++ b/bin/daily @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # Should run after the mirror pulse. The mirror tends to finish by # the ctime of rsync.log.* in ~archvsync. @@ -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