]> git.donarmstrong.com Git - debhelper.git/commitdiff
Optimise -s handling to avoid running dpkg-architecture if the package is arch all.
authorJoey Hess <joey@gnu.kitenet.net>
Tue, 1 Sep 2009 17:20:37 +0000 (13:20 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Tue, 1 Sep 2009 17:20:37 +0000 (13:20 -0400)
Debian/Debhelper/Dh_Lib.pm
debian/changelog

index cd87ebe58f5ba1bbf8b58b06695c152ebe3d8c3e..4ccd12ae31dd321261edfe33a64023628e33d975 100644 (file)
@@ -714,11 +714,13 @@ sub getpackages {
                                $package_types{$package}=$package_type;
                                $package_arches{$package}=$arch;
                        }
+
                        if ($package &&
                            (($type eq 'indep' && $arch eq 'all') ||
                             ($type eq 'arch' && $arch ne 'all') ||
                             ($type eq 'same' && ($arch eq 'any' ||
-                                            samearch(buildarch(), $arch))) ||
+                                            ($arch ne 'all' &&
+                                             samearch(buildarch(), $arch)))) ||
                             ! $type)) {
                                push @list, $package;
                                $package="";
index 5b495fa8123e879a1853b3e48b73d08aa8f33dbc..c0fdd8bdcfdc0376ff6e2d8c870f83986f488bb4 100644 (file)
@@ -1,3 +1,10 @@
+debhelper (7.3.17) UNRELEASED; urgency=low
+
+  * Optimise -s handling to avoid running dpkg-architecture if the package
+    is arch all.
+
+ -- Joey Hess <joeyh@debian.org>  Tue, 01 Sep 2009 13:19:55 -0400
+
 debhelper (7.3.16) unstable; urgency=low
 
   * dh_desktop: Clarify in man page why it's a no-op.