From e3a855888fe6783056087357c050ee2581e57e6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 18 May 2009 12:54:28 +0200 Subject: Fix #2 --- portato/backend/portage/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'portato') diff --git a/portato/backend/portage/package.py b/portato/backend/portage/package.py index 0f4dffe..502ee2b 100644 --- a/portato/backend/portage/package.py +++ b/portato/backend/portage/package.py @@ -117,7 +117,8 @@ class PortagePackage (Package): def is_masked (self, use_changed = True): # things with bad EAPI are _always_ masked - if any(x.startswith("EAPI") for x in self._status): return True + if self._status and any(x.startswith("EAPI") for x in self._status): + return True if use_changed: status = flags.new_masking_status(self.get_cpv()) -- cgit v1.2.3