Getopt::Long::Configure('pass_through');
GetOptions(\%options,
'quick|q',
- 'service|s',
- 'sysconfdir|c',
+ 'service|s=s',
+ 'sysconfdir|c=s',
'progress!',
'spool_dir|spool-dir=s',
'verbose|v+',
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 {