Add one more size == 0 check to digestgen().
authorZac Medico <zmedico@gentoo.org>
Tue, 26 Jun 2007 22:16:27 +0000 (22:16 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 26 Jun 2007 22:16:27 +0000 (22:16 -0000)
svn path=/main/trunk/; revision=7041

pym/portage/__init__.py

index 3e56e83739141bfa197216a6e889e2edfcd699c1..36953e68729b647dc1b724700e02b5763c844a83 100644 (file)
@@ -2978,6 +2978,8 @@ def digestgen(myarchives, mysettings, overwrite=1, manifestonly=0, myportdb=None
                                continue
                        if required_hash_types.difference(myhashes):
                                missing_hashes.add(myfile)
+                       if myhashes["size"] == 0:
+                               missing_hashes.add(myfile)
                if missing_hashes:
                        missing_files = []
                        for myfile in missing_hashes: