From 254329f6fb10a1fa59a0259fa5b2930530f63aae Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 29 Sep 2012 16:54:19 +1000 Subject: makepkg: install debug symbol packages if requested When using "makepkg -i", install the debugging symbol packages too if present. Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') 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 -- cgit v1.2.3-24-g4f1b