From: Don Armstrong Date: Mon, 7 Aug 2017 17:24:48 +0000 (-0700) Subject: mtime should be <= to skip during --quick, not just < X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=0de3bc6bd4599f57878d7d3306f7edc79c614495 mtime should be <= to skip during --quick, not just < --- diff --git a/bin/debbugs-loadsql b/bin/debbugs-loadsql index 6a159fe..f37a8ef 100755 --- a/bin/debbugs-loadsql +++ b/bin/debbugs-loadsql @@ -299,7 +299,7 @@ sub add_bugs { next; } my $rs = $s->resultset('Bug')->search({id=>$bug})->single(); - next if defined $rs and $stat->mtime < $rs->last_modified()->epoch(); + next if defined $rs and $stat->mtime <= $rs->last_modified()->epoch(); push @bugs_to_update, $bug; } } else { @@ -569,7 +569,7 @@ sub add_logs { } if ($options{quick}) { my $rs = $s->resultset('Bug')->search({bug=>$bug})->single(); - next if defined $rs and $stat->mtime < $rs->last_modified()->epoch(); + next if defined $rs and $stat->mtime <= $rs->last_modified()->epoch(); } eval { load_bug_log(db => $s,