When using "makepkg -i", install the debugging symbol packages too
if present.

Signed-off-by: Allan McRae <[email protected]>
---
 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


Reply via email to