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

svn path=/main/branches/2.1.2/; revision=8380

pym/portage.py

index 3bc20c0615af3e4ba4f31861142294f0282ee2af..0c7bde5855da1384a71c83504050c4f020f653c4 100644 (file)
@@ -1883,14 +1883,10 @@ class config:
                        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