Package: debhelper Version: 7.4.2 Severity: normal Tags: patch I encountered a weird transient build failure today; dpkg-architecture randomly failed and so a debhelper command fell over. The build succeeded at a second attempt, so I guess it must have been a hardware problem or something. However, it was rather frustrating that debhelper threw away the error message from dpkg-architecture, which might have been informative in some way, and simply said "dpkg-architecture failed".
The following patch would make errors a bit more helpful. diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm index 5a0b794..1d41ffc 100644 --- a/Debian/Debhelper/Dh_Lib.pm +++ b/Debian/Debhelper/Dh_Lib.pm @@ -608,7 +608,7 @@ sub excludefile { sub dpkg_architecture_value { my $var = shift; - my $value=`dpkg-architecture -q$var 2>/dev/null` || error("dpkg-architecture failed"); + my $value=`dpkg-architecture -q$var` || _error_exitcode("dpkg-architecture -q$var"); chomp $value; return $value; } -- Colin Watson [cjwat...@debian.org] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org