From 25bc62ba464d2712a6f3c870bf94c2cf3ed6b736 Mon Sep 17 00:00:00 2001 From: espie Date: Fri, 21 Dec 2012 12:26:16 +0000 Subject: [PATCH] quicker restart: when adding a new_path, directly check whether it was built already... so things will go straight to B/I instead of getting through T/Q... less noise in engine.log, and much more accurate information for choosing queue items. --- infrastructure/lib/DPB/Engine.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/infrastructure/lib/DPB/Engine.pm b/infrastructure/lib/DPB/Engine.pm index 37633e8b085..2b183292231 100644 --- a/infrastructure/lib/DPB/Engine.pm +++ b/infrastructure/lib/DPB/Engine.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Engine.pm,v 1.50 2012/10/08 12:41:03 espie Exp $ +# $OpenBSD: Engine.pm,v 1.51 2012/12/21 12:26:16 espie Exp $ # # Copyright (c) 2010 Marc Espie # @@ -629,8 +629,10 @@ sub new_path return; } # $self->{heuristics}->todo($v); - $self->{tobuild}{$v} = $v; - $self->log('T', $v); + if (!$self->{buildable}->is_done($v)) { + $self->{tobuild}{$v} = $v; + $self->log('T', $v); + } return unless defined $v->{info}{FDEPENDS}; for my $f (values %{$v->{info}{FDEPENDS}}) { if ($self->{tofetch}->contains($f) ||