summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-05-21 21:20:42 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-05-21 21:20:42 +0200
commitbe7f3e89a19cadad856dae717836f9ed3a66c85d (patch)
treef7388486a45d7c44804eac89cdc491ce618ae626
parentf4368fbfb9fd0de6f1d1625ffddee17b67926c89 (diff)
downloadportato-be7f3e89a19cadad856dae717836f9ed3a66c85d.tar.gz
portato-be7f3e89a19cadad856dae717836f9ed3a66c85d.tar.bz2
portato-be7f3e89a19cadad856dae717836f9ed3a66c85d.zip
Small fixes
Diffstat (limited to '')
-rw-r--r--portato/backend/portage/package.py2
-rw-r--r--portato/backend/portage/system.py2
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)