]> git.donarmstrong.com Git - debbugs.git/commitdiff
id is the column in bug which has the bug number, not id
authorDon Armstrong <don@donarmstrong.com>
Thu, 10 Aug 2017 00:50:26 +0000 (17:50 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 10 Aug 2017 00:50:26 +0000 (17:50 -0700)
bin/debbugs-loadsql

index ebf217a9b6393df2115b873e16857e5788676a08..9597447aaf0997c8e01efbd0ee2848fbce462d41 100755 (executable)
@@ -561,8 +561,10 @@ sub add_logs {
                       next;
                   }
                   if ($options{quick}) {
-                      my $rs = $s->resultset('Bug')->search({bug=>$bug})->single();
-                      next if defined $rs and $stat->mtime <= $rs->last_modified()->epoch();
+                      my $rs = $s->resultset('Bug')->
+                         search({id=>$bug})->single();
+                      next if defined $rs and
+                         $stat->mtime <= $rs->last_modified()->epoch();
                   }
                   eval {
                       load_bug_log(db => $s,