From 02363ef8dc04c1ebaf705914b179d03cab8016ec Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 2 Nov 2007 08:35:07 +0000 Subject: 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 --- pym/portage.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 -- cgit v1.2.3-1-g7c22