Short circuit the loop as soon as missing hashes are detected.
authorZac Medico <zmedico@gentoo.org>
Tue, 26 Jun 2007 22:18:57 +0000 (22:18 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 26 Jun 2007 22:18:57 +0000 (22:18 -0000)
svn path=/main/trunk/; revision=7042

pym/portage/__init__.py

index 36953e68729b647dc1b724700e02b5763c844a83..cbe55475c1ec5db3dd5658be3077df34bdbb6858 100644 (file)
@@ -2978,6 +2978,7 @@ 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: