]> git.donarmstrong.com Git - debhelper.git/commitdiff
r1884: impove some errors
authorjoeyh <joeyh>
Mon, 13 Mar 2006 04:37:36 +0000 (04:37 +0000)
committerjoeyh <joeyh>
Mon, 13 Mar 2006 04:37:36 +0000 (04:37 +0000)
Debian/Debhelper/Dh_Lib.pm
debian/rules

index 80645abe3f8f8b42a99974bb7fa394f7bb2af8f7..8767758079ac7575a29c27e1afac93190a95f838 100644 (file)
@@ -553,7 +553,7 @@ sub excludefile {
        sub buildarch {
                return $arch if defined $arch;
 
-               $arch=`dpkg-architecture -qDEB_HOST_ARCH 2>/dev/null` || error($!);
+               $arch=`dpkg-architecture -qDEB_HOST_ARCH 2>/dev/null` || error("dpkg-architecture failed");
                chomp $arch;
                return $arch;
        }
index 96117701c5c9724f17975da334e9ef778f2e1f1b..4292724e2b05ebfe300a03da17c22c06fbfc9bfa 100755 (executable)
@@ -26,7 +26,7 @@ MAKEMANLIST=perl -e ' \
                }'
 
 # Figure out the `current debhelper version.
-VERSION=$(shell expr "`dpkg-parsechangelog 2>/dev/null |grep Version:`" : '.*Version: \(.*\)')
+VERSION=$(shell expr "`dpkg-parsechangelog |grep Version:`" : '.*Version: \(.*\)')
 
 PERLLIBDIR=$(shell perl -MConfig -e 'print $$Config{vendorlib}')