summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-03-23 15:04:05 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-03-23 15:04:05 -0400
commit240dc46e8c30caa425156006438af98cce06df84 (patch)
tree8c2e16c9309911636d827d944219264b056a57e6
parent94f711ab1af4966a8c1099578752cddb0345e3db (diff)
export write_log
Avoids the ugly thunk in dh
-rw-r--r--Debian/Debhelper/Dh_Lib.pm2
-rwxr-xr-xdh8
2 files changed, 3 insertions, 7 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index 963a8590..b57c4d97 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -15,7 +15,7 @@ use vars qw(@ISA @EXPORT %dh);
&filedoublearray &getpackages &basename &dirname &xargs %dh
&compat &addsubstvar &delsubstvar &excludefile &package_arch
&is_udeb &udeb_filename &debhelper_script_subst &escape_shell
- &inhibit_log &load_log);
+ &inhibit_log &load_log &write_log);
my $max_compat=7;
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;