From 8c8a7def1cb1e2eab99d0ba5da979e5edc6b6c99 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 10 May 2014 16:22:13 +0200 Subject: [PATCH] hooks/post-install/strip: do not create dbg subpkgs if nonfree is set. --- common/hooks/post-install/03-strip-and-debug-pkgs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/hooks/post-install/03-strip-and-debug-pkgs.sh b/common/hooks/post-install/03-strip-and-debug-pkgs.sh index 719e8fe8e9..6b35f5521f 100644 --- a/common/hooks/post-install/03-strip-and-debug-pkgs.sh +++ b/common/hooks/post-install/03-strip-and-debug-pkgs.sh @@ -6,7 +6,7 @@ make_debug() { local dname= fname= dbgfile= - [ -z "$XBPS_DEBUG_PKGS" ] && return 0 + [ -z "$XBPS_DEBUG_PKGS" -o -n "$nonfree" ] && return 0 dname=$(echo "$(dirname $1)"|sed -e "s|${PKGDESTDIR}||g") fname="$(basename $1)" @@ -25,7 +25,7 @@ make_debug() { attach_debug() { local dname= fname= dbgfile= - [ -z "$XBPS_DEBUG_PKGS" ] && return 0 + [ -z "$XBPS_DEBUG_PKGS" -o -n "$nonfree" ] && return 0 dname=$(echo "$(dirname $1)"|sed -e "s|${PKGDESTDIR}||g") fname="$(basename $1)" @@ -41,7 +41,7 @@ attach_debug() { create_debug_pkg() { local _pkgname= _destdir= - [ -z "$XBPS_DEBUG_PKGS" ] && return 0 + [ -z "$XBPS_DEBUG_PKGS" -o -n "$nonfree" ] && return 0 [ ! -d "${PKGDESTDIR}/usr/lib/debug" ] && return 0 _pkgname="${pkgname}-dbg-${version}"