hooks/post-install/strip: do not create dbg subpkgs if nonfree is set.

This commit is contained in:
Juan RP 2014-05-10 16:22:13 +02:00
parent 5a5fdb1097
commit 8c8a7def1c
1 changed files with 3 additions and 3 deletions

View File

@ -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}"