From 0de3bc6bd4599f57878d7d3306f7edc79c614495 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 7 Aug 2017 10:24:48 -0700 Subject: [PATCH] mtime should be <= to skip during --quick, not just < --- bin/debbugs-loadsql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.39.2