X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bin%2Fdebbugs-loadsql;h=2edcd1ec32f4c9fd4f74c948e7145f3ce0958b87;hb=4d4422fcd44089edbda1cdaf2b0c6377bfc6f8d2;hp=e6e1ac621a1fab7efa20b8c25ea61a94931b5ea3;hpb=219fa4f93518f45b093c9187c79b8616e78cc223;p=debbugs.git diff --git a/bin/debbugs-loadsql b/bin/debbugs-loadsql index e6e1ac6..2edcd1e 100755 --- a/bin/debbugs-loadsql +++ b/bin/debbugs-loadsql @@ -252,7 +252,10 @@ sub add_bugs { print STDERR "Unable to stat $bug $!\n"; next; } - next if $stat->mtime < $time; + if ($options{quick}) { + my $rs = $s->resultset('Bug')->search({bug=>$bug})->single(); + next if defined $rs and $stat->mtime < $rs->last_modified()->epoch(); + } my $data = read_bug(bug => $bug, location => $initialdir); eval {