diff options
-rw-r--r-- | Debian/Debhelper/Dh_Lib.pm | 9 | ||||
-rw-r--r-- | debian/changelog | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm index 213e7cc8..f8fae26f 100644 --- a/Debian/Debhelper/Dh_Lib.pm +++ b/Debian/Debhelper/Dh_Lib.pm @@ -802,7 +802,14 @@ sub filedoublearray { push @ret, [@line]; } - close DH_FARRAY_IN || error("problem reading $file: $!"); + if (!close(DH_FARRAY_IN)) { + if ($x) { + error("Error closing fd/process for $file: $!") if $!; + error_exitcode("$file (executable config)"); + } else { + error("problem reading $file: $!"); + } + } return @ret; } diff --git a/debian/changelog b/debian/changelog index 1cb62b69..db049577 100644 --- a/debian/changelog +++ b/debian/changelog @@ -46,6 +46,9 @@ debhelper (9.20160403+unreleased) UNRELEASED; urgency=medium the package. * dh_strip: Cache file(1) output to avoid calling file(1) twice on all ELF binaries in the package. + * Dh_Lib.pm: Add better error messages when a debhelper program + fails due to an executable config file not terminating with + success. (Closes: #818933) -- Niels Thykier <niels@thykier.net> Sat, 09 Apr 2016 09:20:32 +0000 |