]> git.donarmstrong.com Git - debbugs.git/commitdiff
mtime should be <= to skip during --quick, not just <
authorDon Armstrong <don@donarmstrong.com>
Mon, 7 Aug 2017 17:24:48 +0000 (10:24 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 7 Aug 2017 17:24:48 +0000 (10:24 -0700)
bin/debbugs-loadsql

index 6a159feec59a63ab70dcb3ead1d4eaa473b4c67a..f37a8ef6fea4d91963c1072cf0e881827f5d8244 100755 (executable)
@@ -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,