[pacman-dev] [PATCH] makepkg: don't print per-pkgname debug packages
Eli Schwartz
eschwartz at archlinux.org
Mon Jun 18 03:21:21 UTC 2018
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 <eschwartz at archlinux.org>
---
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
More information about the pacman-dev
mailing list