diff options
author | rillig <rillig> | 2007-03-16 20:38:40 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-03-16 20:38:40 +0000 |
commit | 44ba40bdd39d33b2b109dbc7c2a8b14b534cf115 (patch) | |
tree | f1e064cfd67af27ed05b80c61a361fcec7765c15 /mk | |
parent | e02eafd6bc93854140bc659ff422995b073dd0a5 (diff) | |
download | pkgsrc-44ba40bdd39d33b2b109dbc7c2a8b14b534cf115.tar.gz |
For the package pkgtools/shlock, it is not possbile to provide locking.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/internal/locking.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/internal/locking.mk b/mk/internal/locking.mk index 6ee759fc5e3..01a8d7b2fed 100644 --- a/mk/internal/locking.mk +++ b/mk/internal/locking.mk @@ -1,4 +1,4 @@ -# $NetBSD: locking.mk,v 1.7 2007/02/22 07:20:42 rillig Exp $ +# $NetBSD: locking.mk,v 1.8 2007/03/16 20:38:40 rillig Exp $ # # User-settable variables: # @@ -75,7 +75,8 @@ USE_TOOLS+= sleep # _CHECK_IF_SHLOCK_IS_AVAILABLE_CMD= \ - ${TEST} -x ${SHLOCK:Q}"" || { \ + [ "${PKGPATH}" != "pkgtools/shlock" ] || exit 0; \ + [ -x ${SHLOCK:Q}"" ] || { \ ${ERROR_MSG} "[locking.mk] shlock is not installed."; \ ${ERROR_MSG} "[locking.mk] Please \"(cd ../../pkgtools/shlock && ${MAKE} install\")."; \ exit 1; \ |