From 0f8224372d3ac2d3eb85e16077cdd52ad82f3bc7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 2 Nov 2007 08:33:47 +0000 Subject: [PATCH] Return early from config.getMaskAtom() as soon as a matching unmask atom is found. svn path=/main/trunk/; revision=8379 --- pym/portage/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 2295116da..96d6d7cfe 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -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 -- 2.26.2