From: Zac Medico Date: Wed, 18 May 2011 04:00:39 +0000 (-0700) Subject: _LockProcess.unlock: assert successful returncode X-Git-Tag: v2.2.0_alpha34~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ae4bdcee45f060b28707fca15ad72e896708740a;p=portage.git _LockProcess.unlock: assert successful returncode --- diff --git a/pym/_emerge/AsynchronousLock.py b/pym/_emerge/AsynchronousLock.py index 3e7600f17..d11797993 100644 --- a/pym/_emerge/AsynchronousLock.py +++ b/pym/_emerge/AsynchronousLock.py @@ -277,6 +277,9 @@ class _LockProcess(AbstractPollTask): raise AssertionError('not locked') if self.returncode is None: raise AssertionError('lock not acquired yet') + if self.returncode != os.EX_OK: + raise AssertionError("lock process failed with returncode %s" \ + % (self.returncode,)) self._unlocked = True self._files['pipe_out'].write(b'\0') self._files['pipe_out'].close()