summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-09-29 08:54:19 +0200
committerAllan McRae <allan@archlinux.org>2012-11-27 06:16:15 +0100
commit254329f6fb10a1fa59a0259fa5b2930530f63aae (patch)
tree001f6c0ab814c07262f46f2b5d6eee12fc272370
parentdbbe3e7cb4ad2ebc45d12acf4427635142165e6e (diff)
downloadpacman-254329f6fb10a1fa59a0259fa5b2930530f63aae.tar.gz
pacman-254329f6fb10a1fa59a0259fa5b2930530f63aae.tar.xz
makepkg: install debug symbol packages if requested
When using "makepkg -i", install the debugging symbol packages too if present. Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--scripts/makepkg.sh.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 9c98d7eb..800ab303 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1994,6 +1994,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