]> git.donarmstrong.com Git - debhelper.git/blobdiff - Debian/Debhelper/Dh_Lib.pm
Optimise -s handling to avoid running dpkg-architecture if the package is arch all.
[debhelper.git] / Debian / Debhelper / Dh_Lib.pm
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="";