for reporting.
svn path=/main/trunk/; revision=11400
self._add_packages()
pkg_queue = self._pkg_queue
failed_pkgs = self._failed_pkgs
+ portage.locks._quiet = self._background
portage.elog._emerge_elog_listener = self._elog_listener
rval = os.EX_OK
self._main_loop()
finally:
self._main_loop_cleanup()
+ portage.locks._quiet = False
portage.elog._emerge_elog_listener = None
if failed_pkgs:
rval = failed_pkgs[-1].returncode
HARDLINK_FD = -2
+# Used by emerge in order to disable the "waiting for lock" message
+# so that it doesn't interfere with the status display.
+_quiet = False
+
def lockdir(mydir):
return lockfile(mydir,wantnewlockfile=1)
def unlockdir(mylock):
# resource temp unavailable; eg, someone beat us to the lock.
if flags & os.O_NONBLOCK:
raise TryAgain(mypath)
- if waiting_msg is None:
+
+ global _quiet
+ if _quiet:
+ pass
+ elif waiting_msg is None:
if isinstance(mypath, int):
print "waiting for lock on fd %i" % myfd
else: