Return early from config.getMaskAtom() as soon as a matching
authorZac Medico <zmedico@gentoo.org>
Fri, 2 Nov 2007 08:33:47 +0000 (08:33 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 2 Nov 2007 08:33:47 +0000 (08:33 -0000)
unmask atom is found.

svn path=/main/trunk/; revision=8379

pym/portage/__init__.py

index 2295116da00c1c33b49fae5e5c502cd25d916eea..96d6d7cfe635c4882dbd46fe467358474c708f1a 100644 (file)
@@ -1874,14 +1874,10 @@ class config(object):
                        for x in mask_atoms:
                                if not match_from_list(x, pkg_list):
                                        continue
-                               masked = True
                                if unmask_atoms:
                                        for y in unmask_atoms:
                                                if match_from_list(y, pkg_list):
-                                                       masked = False
-                                                       break
-                               if not masked:
-                                       continue
+                                                       return None
                                return x
                return None