projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f82c3cf
)
EbuildBinpkg: remove temp file on failure
author
Zac Medico
<zmedico@gentoo.org>
Fri, 13 Apr 2012 19:30:40 +0000
(12:30 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 13 Apr 2012 19:30:40 +0000
(12:30 -0700)
pym/_emerge/EbuildBinpkg.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/EbuildBinpkg.py
b/pym/_emerge/EbuildBinpkg.py
index b7d43ba82acdea6c678dc30cc9dc2b46a8364446..34a6aef9c6beb7ad0c6f1df1885a440f89863047 100644
(file)
--- a/
pym/_emerge/EbuildBinpkg.py
+++ b/
pym/_emerge/EbuildBinpkg.py
@@
-1,4
+1,4
@@
-# Copyright 1999-201
0
Gentoo Foundation
+# Copyright 1999-201
2
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