Package: dh-exec Version: 0.13 Severity: minor File: /usr/share/dh-exec/dh-exec-install-rename Tags: patch User: helm...@debian.org Usertags: rebootstrap
I was faced with a build failure of util-linux today (probably a pebcak) and was greeted by this error message: | Copy failed: No such file or directory at /usr/share/dh-exec/dh-exec-install-rename line 32, <> line 6. This is not helpful. It could be telling me which file is missing. Consider using the attached patch. Helmut
diff -Nru dh-exec-0.13/debian/changelog dh-exec-0.13+nmu1/debian/changelog --- dh-exec-0.13/debian/changelog 2014-08-07 13:43:52.000000000 +0200 +++ dh-exec-0.13+nmu1/debian/changelog 2014-12-06 14:24:37.000000000 +0100 @@ -1,3 +1,10 @@ +dh-exec (0.13+nmu1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Make dh-exec-install-rename's error messages helpful. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 06 Dec 2014 14:24:05 +0100 + dh-exec (0.13) unstable; urgency=medium * Fix a typo in the package description. Thanks James Cowgill! diff -Nru dh-exec-0.13/lib/dh-exec-install-rename dh-exec-0.13+nmu1/lib/dh-exec-install-rename --- dh-exec-0.13/lib/dh-exec-install-rename 2014-08-07 12:56:14.000000000 +0200 +++ dh-exec-0.13+nmu1/lib/dh-exec-install-rename 2014-12-06 14:24:02.000000000 +0100 @@ -32,7 +32,7 @@ cp ($src, File::Spec->catfile ($debpath, $dstfile)) or move (File::Spec->catfile ("debian/tmp", $src), File::Spec->catfile ($debpath, $dstfile)) or - die "Copy failed: $!"; + die "Failed to copy '$src': $!"; $_ = File::Spec->catfile ($debpath, $dstfile); $_ .= " " . $dstpath if ($append_destpath eq TRUE); $_ .= "\n";