hooks/post-install/strip: do not create dbg subpkgs if nonfree is set.
This commit is contained in:
parent
5a5fdb1097
commit
8c8a7def1c
1 changed files with 3 additions and 3 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue