From: Zac Medico Date: Fri, 2 Nov 2007 08:35:07 +0000 (-0000) Subject: Return early from config._getMaskAtom() as soon as a matching X-Git-Tag: v2.1.3.19~27 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=02363ef8dc04c1ebaf705914b179d03cab8016ec;p=portage.git Return early from config._getMaskAtom() as soon as a matching unmask atom is found. (trunk r8379) svn path=/main/branches/2.1.2/; revision=8380 --- diff --git a/pym/portage.py b/pym/portage.py index 3bc20c061..0c7bde585 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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