diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-04-13 12:30:40 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-04-13 12:30:40 -0700 |
commit | 54597d1ce55bd3d67c22a1cc5c7e915a02406477 (patch) | |
tree | a03e1950aa5aec6eb14033686658a3d3dcbdfd45 | |
parent | f82c3cfe4dccc0eea332e8d4f3c64509b0840f56 (diff) | |
download | portage-54597d1ce55bd3d67c22a1cc5c7e915a02406477.tar.gz portage-54597d1ce55bd3d67c22a1cc5c7e915a02406477.tar.bz2 portage-54597d1ce55bd3d67c22a1cc5c7e915a02406477.zip |
EbuildBinpkg: remove temp file on failure
-rw-r--r-- | pym/_emerge/EbuildBinpkg.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/_emerge/EbuildBinpkg.py b/pym/_emerge/EbuildBinpkg.py index b7d43ba82..34a6aef9c 100644 --- a/pym/_emerge/EbuildBinpkg.py +++ b/pym/_emerge/EbuildBinpkg.py @@ -1,4 +1,4 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from _emerge.CompositeTask import CompositeTask @@ -34,6 +34,10 @@ class EbuildBinpkg(CompositeTask): self.settings.pop("PORTAGE_BINPKG_TMPFILE", None) if self._default_exit(package_phase) != os.EX_OK: + try: + os.unlink(self._binpkg_tmpfile) + except OSError: + pass self.wait() return |