From: Zac Medico Date: Tue, 26 Jun 2007 22:18:57 +0000 (-0000) Subject: Short circuit the loop as soon as missing hashes are detected. X-Git-Tag: v2.2_pre1~1142 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b67106b924ea060ba3eaa446ec4d3156c7fb27c3;p=portage.git Short circuit the loop as soon as missing hashes are detected. svn path=/main/trunk/; revision=7042 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 36953e687..cbe55475c 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -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: