From: Debian BTS Date: Wed, 14 Apr 2010 04:24:03 +0000 (+0000) Subject: merge in bugscan fixes X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=commitdiff_plain;h=7e2643d05cdce6436883facaa5f13afb2f168525;hp=aecd3f529cfcff5653d4bc4125725949053d8ddf merge in bugscan fixes --- diff --git a/bugreport b/bugreport index facc662..c8cc82d 100755 --- a/bugreport +++ b/bugreport @@ -173,7 +173,8 @@ sub FilterPackages($) { my $filter = shift; # Distribution we want to keep for my $p (sort keys %scanlib::packagelist) { - delete $scanlib::packagelist{$p} unless ($scanlib::section{$p} =~ m/^$filter/); + delete $scanlib::packagelist{$p} unless (defined $scanlib::section{$p} and + $scanlib::section{$p} =~ m/^$filter/); } } diff --git a/dohtml b/dohtml index 316d5ee..3e1e04e 100755 --- a/dohtml +++ b/dohtml @@ -145,8 +145,8 @@ makepage() { mv -f $3.new $3 } -time=$(date -u --date="$(ls -Ll status | awk '{print $6, $7}'):00 $(date +%z)") -oldtime=$(date -u --date="$(ls -Ll status-old | awk '{print $6, $7}'):00 $(date +%z)") +time=$(date -u -d '@'$(($(stat -c '%Y' status) / 3600 * 3600))) +oldtime=$(date -u -d '@'$(($(stat -c '%Y' status-old) / 3600 * 3600))) title="Release-critical bugs status" makepage "debian" "$title" "$htmldir/debian/all.html" "$time"