public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r12188 - main/trunk/pym/portage
@ 2008-12-09 23:40 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-12-09 23:40 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2008-12-09 23:40:37 +0000 (Tue, 09 Dec 2008)
New Revision: 12188

Modified:
   main/trunk/pym/portage/__init__.py
Log:
In digestgen(), don't call fetch for files that already exist but have
invalid zero-size in the manifest.


Modified: main/trunk/pym/portage/__init__.py
===================================================================
--- main/trunk/pym/portage/__init__.py	2008-12-09 23:32:33 UTC (rev 12187)
+++ main/trunk/pym/portage/__init__.py	2008-12-09 23:40:37 UTC (rev 12188)
@@ -4259,9 +4259,6 @@
 				missing_files.append(myfile)
 				continue
 			size = myhashes.get("size")
-			if size == 0:
-				missing_files.append(myfile)
-				continue
 
 			try:
 				st = os.stat(os.path.join(mysettings["DISTDIR"], myfile))
@@ -4269,6 +4266,9 @@
 				if e.errno != errno.ENOENT:
 					raise
 				del e
+				if size == 0:
+					missing_files.append(myfile)
+					continue
 				if required_hash_types.difference(myhashes):
 					missing_files.append(myfile)
 					continue




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-09 23:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-09 23:40 [gentoo-commits] portage r12188 - main/trunk/pym/portage 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