lock-helper.py: make locks quiet
authorZac Medico <zmedico@gentoo.org>
Fri, 22 Oct 2010 18:54:21 +0000 (11:54 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 22 Oct 2010 18:54:21 +0000 (11:54 -0700)
bin/lock-helper.py

index 469d3a9da5921023f509591399af4031c36afa40..5f3ea9f0955665c459614ab923905a6c8e3d404c 100755 (executable)
@@ -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()