make stuff slightly more verbose all the time

This commit is contained in:
espie 2011-11-12 13:19:26 +00:00
parent 0f092bc18f
commit 8f77bf5ec5
2 changed files with 9 additions and 11 deletions

View File

@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
# $OpenBSD: Port.pm,v 1.14 2011/10/10 18:56:50 espie Exp $
# $OpenBSD: Port.pm,v 1.15 2011/11/12 13:19:26 espie Exp $
#
# Copyright (c) 2010 Marc Espie <espie@openbsd.org>
#
@ -62,9 +62,7 @@ sub run
my $sudo = OpenBSD::Paths->sudo;
my $shell = $core->{shell};
$self->redirect($job->{log});
if ($builder->{state}->opt('v')) {
print ">>> Running $t in $fullpkgpath\n";
}
print ">>> Running $t in $fullpkgpath\n";
my @args = ($t, "TRUST_PACKAGES=Yes",
"FETCH_PACKAGES=No",
"REPORT_PROBLEM='exit 1'", "BULK=No");

View File

@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
# $OpenBSD: PortBuilder.pm,v 1.12 2011/09/25 10:41:30 espie Exp $
# $OpenBSD: PortBuilder.pm,v 1.13 2011/11/12 13:19:26 espie Exp $
#
# Copyright (c) 2010 Marc Espie <espie@openbsd.org>
#
@ -163,12 +163,12 @@ sub build
my ($self, $v, $core, $special, $lock, $final_sub) = @_;
my $start = time();
my $log = $self->{logger}->make_logs($v);
if ($self->{state}->opt('v')) {
open my $fh, ">>", $log;
print $fh ">>> Building under ";
$v->quick_dump($fh);
close($fh);
}
open my $fh, ">>", $log;
print $fh ">>> Building under ";
$v->quick_dump($fh);
close($fh);
my $job;
$job = DPB::Job::Port->new($log, $v, $self, $special,
sub {$self->end_lock($lock, $core, $job); $self->report($v, $job, $core); &$final_sub;});