In commit 9a4d61622066d5d30c649f1c958b26526a4ceddf debug packages were
merged into one exclusive pkgbase-debug, but the print_all_package_names
function did not get updated to match this logic.

Signed-off-by: Eli Schwartz <[email protected]>
---
 scripts/libmakepkg/util/pkgbuild.sh.in | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/scripts/libmakepkg/util/pkgbuild.sh.in 
b/scripts/libmakepkg/util/pkgbuild.sh.in
index c2e2c536..44ba040a 100644
--- a/scripts/libmakepkg/util/pkgbuild.sh.in
+++ b/scripts/libmakepkg/util/pkgbuild.sh.in
@@ -189,11 +189,18 @@ print_all_package_names() {
                fi
                for a in "${architecture[@]}"; do
                        printf "%s/%s-%s-%s%s\n" "$PKGDEST" "$pkg" "$version" 
"$a" "$PKGEXT"
-                       if check_option "debug" "y" && check_option "strip" 
"y"; then
-                               printf "%s/%s-%s-%s-%s%s\n" "$PKGDEST" "$pkg" 
"@DEBUGSUFFIX@" "$version" "$a" "$PKGEXT"
-                       fi
                done
        done
+       if check_option "debug" "y" && check_option "strip" "y"; then
+               if (( IGNOREARCH )); then
+                       get_pkgbuild_attribute '' 'arch' 1 architecture
+               else
+                       architecture=$(get_pkg_arch)
+               fi
+               for a in "${architecture[@]}"; do
+                       printf "%s/%s-%s-%s-%s%s\n" "$PKGDEST" "$pkgbase" 
"@DEBUGSUFFIX@" "$version" "$a" "$PKGEXT"
+               done
+       fi
 }
 
 get_all_sources() {
-- 
2.17.1

Reply via email to