next;
}
my $rs = $s->resultset('Bug')->search({id=>$bug})->single();
- next if defined $rs and $stat->mtime < $rs->last_modified()->epoch();
+ next if defined $rs and $stat->mtime <= $rs->last_modified()->epoch();
push @bugs_to_update, $bug;
}
} else {
}
eval {
$s->txn_do(sub {
- for my $bug (@bugs) {
+ for my $bug (@bugs_to_update) {
load_bug(db => $s,
bug => $bug,
tags => \%tags,
}
if ($options{quick}) {
my $rs = $s->resultset('Bug')->search({bug=>$bug})->single();
- next if defined $rs and $stat->mtime < $rs->last_modified()->epoch();
+ next if defined $rs and $stat->mtime <= $rs->last_modified()->epoch();
}
eval {
load_bug_log(db => $s,