From: Zac Medico <zmedico@gentoo.org>
Date: Fri, 22 Oct 2010 18:54:21 +0000 (-0700)
Subject: lock-helper.py: make locks quiet
X-Git-Tag: v2.1.9.25~62
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1bb8b848e6630fb7c0b65aa6eed901a51b14d115;p=portage.git

lock-helper.py: make locks quiet
---

diff --git a/bin/lock-helper.py b/bin/lock-helper.py
index 469d3a9da..5f3ea9f09 100755
--- a/bin/lock-helper.py
+++ b/bin/lock-helper.py
@@ -13,6 +13,9 @@ def main(args):
 		for i, x in enumerate(args):
 			args[i] = portage._unicode_decode(x, errors='strict')
 
+	# Make locks quiet since unintended locking messages displayed on
+	# stdout would corrupt the intended output of this program.
+	portage.locks._quiet = True
 	lock_obj = portage.locks.lockfile(args[0], wantnewlockfile=True)
 	sys.stdout.write('\0')
 	sys.stdout.flush()