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
-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)
ss='insertions'>+20 2007-08-01Removed "(GTK)" from desktop filenecoro1-1/+1 2007-07-30updatesnecoro1-1/+1 2007-07-30updatesnecoro2-21/+64 2007-07-28some more pause emerge itemsnecoro5-276/+423 2007-07-27changed design / added linknecoro3-66/+154 2007-07-26changed design / added linknecoro2-34/+27 2007-07-25changed design / added linknecoro5-86/+188 2007-07-24made the resume_loop-plugin change titles toonecoro5-7/+22 2007-07-21added logviewersnecoro7-215/+429 2007-07-21updated howtonecoro1-14/+24 2007-07-20new Plugin Schemenecoro1-5/+4 2007-07-20new Plugin Schemenecoro1-1/+1 2007-07-20new Plugin Schemenecoro9-162/+214 2007-07-13fixesnecoro4-27/+37 2007-07-13new fancier log outputnecoro14-127/+116 2007-07-11added SIGSTOP/SIGCONT support; SIGTERM now works ;)necoro8-208/+275 2007-07-09bug in shutdown pluginnecoro2-5/+12 2007-07-09added resume_loop pluginnecoro1-1/+1 2007-07-09added resume_loop pluginnecoro10-22/+162 2007-07-07some more documentationnecoro6-4/+108 2007-07-07Some documentation worknecoro7-18/+129