use rescan after errors, so that bumps get picked up

This commit is contained in:
espie 2010-10-27 22:58:02 +00:00
parent 309af926e4
commit d1fc80b3fe
2 changed files with 6 additions and 8 deletions

View File

@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
# $OpenBSD: Engine.pm,v 1.8 2010/10/27 22:53:33 espie Exp $
# $OpenBSD: Engine.pm,v 1.9 2010/10/27 22:58:02 espie Exp $
#
# Copyright (c) 2010 Marc Espie <espie@openbsd.org>
#
@ -318,7 +318,6 @@ sub rebuild_info
}
my @subdirs = map {$_->fullpkgpath} @l;
$self->{grabber}->grab_subdirs($core, \@subdirs);
# XXX todo something needs to happen after the rescan ?
}
sub start_new_job

View File

@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
# $OpenBSD: Locks.pm,v 1.3 2010/10/27 12:58:26 espie Exp $
# $OpenBSD: Locks.pm,v 1.4 2010/10/27 22:58:02 espie Exp $
#
# Copyright (c) 2010 Marc Espie <espie@openbsd.org>
#
@ -117,12 +117,11 @@ sub recheck_errors
if ($self->locked($v)) {
push(@{$engine->{$name}}, $v);
} else {
# XXX not ready yet
# if ($name eq 'errors') {
# $engine->rescan($v);
# } else {
if ($name eq 'errors') {
$engine->rescan($v);
} else {
$engine->requeue($v);
# }
}
}
}
}