diff options
Diffstat (limited to 'portato')
-rw-r--r-- | portato/backend/portage/package.py | 2 | ||||
-rw-r--r-- | portato/backend/portage/system.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/portato/backend/portage/package.py b/portato/backend/portage/package.py index 0452641..02d141a 100644 --- a/portato/backend/portage/package.py +++ b/portato/backend/portage/package.py @@ -130,7 +130,7 @@ class PortagePackage (Package): # get the normal masked ones if self._status and ("profile" in self._status or "package.mask" in self._status): - return flags.is_locally_masked(self, changes = False) # assume that if it is locally masked, it is not masked by the system + return not flags.is_locally_masked(self, changes = False) # assume that if it is locally masked, it is not masked by the system else: # more difficult: get the ones we unmasked, but are masked by the system try: masked = self._settings.settings.pmaskdict[self.get_cp()] diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py index fa4fece..e14908c 100644 --- a/portato/backend/portage/system.py +++ b/portato/backend/portage/system.py @@ -167,7 +167,7 @@ class PortageSystem (SystemInterface): t = self.find_packages(search_key, pkgSet = pkgSet, masked = masked, with_version = True, only_cpv = True) if self._version >= (2,1,5): - t += [pkg.get_cpv() for pkg in self.find_installed_packages(search_key) if not (pkg.is_testing(True) or pkg.is_masked())] + t += [pkg.get_cpv() for pkg in self.find_packages(search_key, "installed") if not (pkg.is_testing(True) or pkg.is_masked())] if t: t = unique_array(t) |