]> git.donarmstrong.com Git - debbugs.git/commitdiff
the quick bug method was searching on bug not id
authorDon Armstrong <don@donarmstrong.com>
Sat, 15 Apr 2017 02:29:08 +0000 (19:29 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 15 Apr 2017 02:29:08 +0000 (19:29 -0700)
bin/debbugs-loadsql

index 277ac2b586f1d2ddb952aea181510caf37eaef3c..b5d91187739a5489904ae1878a2e4c510dd13dd2 100755 (executable)
@@ -298,7 +298,7 @@ sub add_bugs {
                       print STDERR "Unable to stat $bug $!\n";
                       next;
                    }
-                   my $rs = $s->resultset('Bug')->search({bug=>$bug})->single();
+                   my $rs = $s->resultset('Bug')->search({id=>$bug})->single();
                    next if defined $rs and $stat->mtime < $rs->last_modified()->epoch();
                    push @bugs_to_update, $bug;
                   }