diff options
author | rillig <rillig> | 2006-11-09 02:11:44 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-11-09 02:11:44 +0000 |
commit | 7839cee20f8fe5742ba5f0750aae071a0b68fba9 (patch) | |
tree | cb070484e81b8a816162bd4a30b8961f919c1955 /mk/internal | |
parent | 461e06b446d6bf9cfd01e3e7108b9ea3ef653b62 (diff) | |
download | pkgsrc-7839cee20f8fe5742ba5f0750aae071a0b68fba9.tar.gz |
In the status and error messages, say _which_ lock is being held by
another process. It's a little more verbose now, but it helps
understanding what goes on.
Diffstat (limited to 'mk/internal')
-rw-r--r-- | mk/internal/locking.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/internal/locking.mk b/mk/internal/locking.mk index 4943835212e..cda52892bdf 100644 --- a/mk/internal/locking.mk +++ b/mk/internal/locking.mk @@ -1,4 +1,4 @@ -# $NetBSD: locking.mk,v 1.2 2006/08/04 20:52:27 rillig Exp $ +# $NetBSD: locking.mk,v 1.3 2006/11/09 02:11:44 rillig Exp $ # # This file provides the following .USE targets: @@ -77,10 +77,10 @@ _ACQUIRE_LOCK_CMD= \ fi; \ lockpid=`${CAT} "$$lockfile"`; \ case ${PKGSRC_LOCKTYPE:Q}"" in \ - once) ${ERROR_MSG} "Lock is held by pid $$lockpid"; \ + once) ${ERROR_MSG} "Lock ${.TARGET} is held by pid $$lockpid"; \ exit 1; \ ;; \ - sleep) ${STEP_MSG} "Lock is held by pid $$lockpid"; \ + sleep) ${STEP_MSG} "Lock ${.TARGET} is held by pid $$lockpid"; \ ${SLEEP} ${PKGSRC_SLEEPSECS}; \ ;; \ esac; \ |