Add one more size == 0 check to digestgen(). (trunk r7040:7042)
authorZac Medico <zmedico@gentoo.org>
Tue, 26 Jun 2007 22:20:30 +0000 (22:20 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 26 Jun 2007 22:20:30 +0000 (22:20 -0000)
svn path=/main/branches/2.1.2/; revision=7043

pym/portage.py

index 9f5818b95f5e84e2bc88e5dac286f7fd956c20c0..361e8b1a7c37b85c224db0f1caf5372b5a641cef 100644 (file)
@@ -2868,6 +2868,9 @@ def digestgen(myarchives, mysettings, overwrite=1, manifestonly=0, myportdb=None
                                continue
                        if required_hash_types.difference(myhashes):
                                missing_hashes.add(myfile)
+                               continue
+                       if myhashes["size"] == 0:
+                               missing_hashes.add(myfile)
                if missing_hashes:
                        missing_files = []
                        for myfile in missing_hashes: