From: Joey Hess Date: Tue, 1 Sep 2009 17:10:28 +0000 (-0400) Subject: refactor X-Git-Tag: 7.4.0~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8fc9ed5241e752d51da71982116730e9c7287cb9;p=debhelper.git refactor --- diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm index a546dbf..cd87ebe 100644 --- a/Debian/Debhelper/Dh_Lib.pm +++ b/Debian/Debhelper/Dh_Lib.pm @@ -630,10 +630,9 @@ sub dpkg_architecture_value { my $os; sub buildos { - return $os if defined $os; - - $os=`dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null` || error("dpkg-architecture failed"); - chomp $os; + if (!defined $os) { + $os=dpkg_architecture_value("DEB_HOST_ARCH_OS"); + } return $os; } }