[pacman-dev] [PATCH 3/3] makepkg: install debug symbol packages if requested
Allan McRae
allan at archlinux.org
Sat Sep 29 03:12:35 EDT 2012
When using "makepkg -i", install the debugging symbol packages too
if present.
Signed-off-by: Allan McRae <allan at archlinux.org>
---
scripts/makepkg.sh.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index d36995a..5822843 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -2000,6 +2000,10 @@ install_package() {
fullver=$(get_full_version $pkg)
pkgarch=$(get_pkg_arch $pkg)
pkglist+=("$PKGDEST/${pkg}-${fullver}-${pkgarch}${PKGEXT}")
+
+ if [[ -f "$PKGDEST/${pkg}-debug-${fullver}-${pkgarch}${PKGEXT}" ]]; then
+ pkglist+=("$PKGDEST/${pkg}-debug-${fullver}-${pkgarch}${PKGEXT}")
+ fi
done
if ! run_pacman -U ${pkglist[@]}; then
--
1.7.12.1
More information about the pacman-dev
mailing list