]> git.donarmstrong.com Git - debbugs.git/blobdiff - bin/debbugs-loadsql
id is the column in bug which has the bug number, not id
[debbugs.git] / 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,