diff options
author | Allan McRae <allan@archlinux.org> | 2012-09-29 16:54:19 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2012-11-27 15:16:15 +1000 |
commit | 254329f6fb10a1fa59a0259fa5b2930530f63aae (patch) | |
tree | 001f6c0ab814c07262f46f2b5d6eee12fc272370 /scripts/makepkg.sh.in | |
parent | dbbe3e7cb4ad2ebc45d12acf4427635142165e6e (diff) | |
download | 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>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r-- | scripts/makepkg.sh.in | 4 |
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 |