diff options
author | jlam <jlam@pkgsrc.org> | 2005-12-29 13:47:43 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-12-29 13:47:43 +0000 |
commit | 5128d7a9bbafeb93148b2175c8a75158512189b9 (patch) | |
tree | e219fd78e34941bc2cea4e5b50d157ebbd3e8be1 /mk | |
parent | e880439d8005cafd667eab158ae27641fe570491 (diff) | |
download | pkgsrc-5128d7a9bbafeb93148b2175c8a75158512189b9.tar.gz |
Test that a variable is defined before checking its value. Fix from
Thomas Klausner.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/install/pkginstall.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/install/pkginstall.mk b/mk/install/pkginstall.mk index 227c72e004f..1b52ce4d4a4 100644 --- a/mk/install/pkginstall.mk +++ b/mk/install/pkginstall.mk @@ -1,4 +1,4 @@ -# $NetBSD: pkginstall.mk,v 1.1 2005/12/29 06:18:53 jlam Exp $ +# $NetBSD: pkginstall.mk,v 1.2 2005/12/29 13:47:43 jlam Exp $ # # This Makefile fragment is included by bsd.pkg.mk and determines whether # or not the bsd.pkginstall.mk implementation file should be included. @@ -37,7 +37,7 @@ _PKGINSTALL_VARS+= CONF_DEPENDS _USE_PKGINSTALL= no .for _var_ in ${_PKGINSTALL_VARS} -. if !empty(${_var_}) +. if defined(${_var_}) && !empty(${_var_}:M*) _USE_PKGINSTALL= yes . endif .endfor |