diff options
author | lukem <lukem@pkgsrc.org> | 2003-02-18 10:36:44 +0000 |
---|---|---|
committer | lukem <lukem@pkgsrc.org> | 2003-02-18 10:36:44 +0000 |
commit | d30e0c614706e189ca22242426d64607d2dee89e (patch) | |
tree | c6d56f3783ae3124b43bfc7c88362c8200b7249e | |
parent | be88583b1cd2335fb99c12125932d7ce680269f7 (diff) | |
download | pkgsrc-d30e0c614706e189ca22242426d64607d2dee89e.tar.gz |
Wrap "Lock acquired ..." and "Lock released ..." messages with PKG_VERBOSE check
-rw-r--r-- | mk/bsd.pkg.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 7bc663bc798..3bb5b2d2e80 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1142 2003/02/16 04:43:02 salo Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1143 2003/02/18 10:36:44 lukem Exp $ # # This file is in the public domain. # @@ -1529,11 +1529,15 @@ _ACQUIRE_LOCK= \ sleep) sleep ${PKGSRC_SLEEPSECS} ;; \ esac \ done; \ - ${ECHO_MSG} "=> Lock acquired on behalf of process $$ppid" + if [ "${PKG_VERBOSE}" != "" ]; then \ + ${ECHO_MSG} "=> Lock acquired on behalf of process $$ppid"; \ + fi _RELEASE_LOCK= \ ${_PKG_SILENT}${_PKG_DEBUG} \ - ${ECHO_MSG} "=> Lock released on behalf of process `${CAT} ${LOCKFILE}`"; \ + if [ "${PKG_VERBOSE}" != "" ]; then \ + ${ECHO_MSG} "=> Lock released on behalf of process `${CAT} ${LOCKFILE}`"; \ + fi; \ ${RM} ${LOCKFILE} .endif # PKGSRC_LOCKTYPE |