* [gentoo-commits] portage r12230 - main/branches/2.1.6/pym/_emerge
@ 2008-12-12 21:39 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-12-12 21:39 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2008-12-12 21:39:01 +0000 (Fri, 12 Dec 2008)
New Revision: 12230
Modified:
main/branches/2.1.6/pym/_emerge/__init__.py
Log:
Make BinpkgVerifier rename files that fail verification, similar to how
distfiles are automatically renamed. (trunk r12197)
Modified: main/branches/2.1.6/pym/_emerge/__init__.py
===================================================================
--- main/branches/2.1.6/pym/_emerge/__init__.py 2008-12-12 21:37:31 UTC (rev 12229)
+++ main/branches/2.1.6/pym/_emerge/__init__.py 2008-12-12 21:39:01 UTC (rev 12230)
@@ -3505,6 +3505,12 @@
writemsg("!!! Expected: %s\n" % e.value[3],
noiselevel=-1)
rval = 1
+ if rval != os.EX_OK:
+ pkg_path = bintree.getname(pkg.cpv)
+ head, tail = os.path.split(pkg_path)
+ temp_filename = portage._checksum_failure_temp_file(head, tail)
+ writemsg("File renamed to '%s'\n" % (temp_filename,),
+ noiselevel=-1)
finally:
sys.stdout = stdout_orig
sys.stderr = stderr_orig
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-12 21:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-12 21:39 [gentoo-commits] portage r12230 - main/branches/2.1.6/pym/_emerge Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox