summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Dh_Lib.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-04-29 01:41:30 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-04-29 01:41:30 -0400
commit1e711636f4790f51ae10474f93cb740e0399ea57 (patch)
tree2fb1883353e912997763a50f40280f78fabcaf31 /Debian/Debhelper/Dh_Lib.pm
parent487dd17039d4036cc83dfbe866c69802a4a67bdb (diff)
improve error further
Diffstat (limited to 'Debian/Debhelper/Dh_Lib.pm')
-rw-r--r--Debian/Debhelper/Dh_Lib.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index d26b7ea..62b6254 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -117,7 +117,8 @@ sub END {
my $cmd=basename($0);
foreach my $package (@{$dh{DOPACKAGES}}) {
my $ext=pkgext($package);
- open(LOG, ">>", "debian/${ext}debhelper.log") || error("failed to write to log: $!");
+ my $log="debian/${ext}debhelper.log";
+ open(LOG, ">>", $log) || error("failed to write to ${log}: $!");
print LOG $cmd."\n";
close LOG;
}