From 240dc46e8c30caa425156006438af98cce06df84 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 23 Mar 2009 15:04:05 -0400 Subject: export write_log Avoids the ugly thunk in dh --- dh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'dh') diff --git a/dh b/dh index ab7ddb07..f557a633 100755 --- a/dh +++ b/dh @@ -386,7 +386,7 @@ foreach my $package (@packages) { # no commands remain to run after it, communicating to # future dh instances that the specified command should not # be run again. - writelog($sequence[$startpoint{$package}-1], $package); + write_log($sequence[$startpoint{$package}-1], $package); } elsif ($dh{REMAINING}) { # Start at the beginning so all remaining commands will get @@ -479,15 +479,11 @@ sub run { # been run by the rules file target. my %packages=map { $_ => 1 } @packages; map { delete $packages{$_} } @exclude; - writelog($override_command, keys %packages); + write_log($override_command, keys %packages); } } } -sub writelog { - Debian::Debhelper::Dh_Lib::write_log(@_); -} - { my %targets; my $rules_parsed; -- cgit v1.2.3