diff options
author | jlam <jlam> | 2005-12-29 13:47:43 +0000 |
---|---|---|
committer | jlam <jlam> | 2005-12-29 13:47:43 +0000 |
commit | 76d6d73e6d30deb28e883f572b69648c36a43e71 (patch) | |
tree | e219fd78e34941bc2cea4e5b50d157ebbd3e8be1 /mk/install | |
parent | 52d7cccf3ad3fb94050fb338c9706011e2a1302e (diff) | |
download | pkgsrc-76d6d73e6d30deb28e883f572b69648c36a43e71.tar.gz |
Test that a variable is defined before checking its value. Fix from
Thomas Klausner.
Diffstat (limited to 'mk/install')
-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 |