Make locks quiet since unintended locking messages displayed on
authorZac Medico <zmedico@gentoo.org>
Thu, 12 Aug 2010 18:39:31 +0000 (11:39 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 12 Aug 2010 18:39:31 +0000 (11:39 -0700)
stdout could corrupt the intended output of this program.

bin/ebuild-ipc.py

index 43a52658230cd576b1815ce434fda5fdde19786e..2edd6655955ec2c0d7e83885ba08e809db311b32 100755 (executable)
@@ -31,6 +31,9 @@ class EbuildIpc(object):
                self.ipc_lock_file = os.path.join(self.fifo_dir, '.ipc_lock')
 
        def communicate(self, args):
+               # Make locks quiet since unintended locking messages displayed on
+               # stdout could corrupt the intended output of this program.
+               portage.locks._quiet = True
                lock_obj = portage.locks.lockfile(self.ipc_lock_file, unlinkfile=True)
                try:
                        return self._communicate(args)