summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
Diffstat (limited to 'portato/backend')
-rw-r--r--portato/backend/portage/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/portato/backend/portage/package.py b/portato/backend/portage/package.py
index 4f4b618..a1bf433 100644
--- a/portato/backend/portage/package.py
+++ b/portato/backend/portage/package.py
@@ -42,6 +42,9 @@ class PortagePackage (Package):
self._status = portage.getmaskingstatus(self.get_cpv(), settings = self._settings.settings)
except KeyError: # package is not located in the system
self._status = None
+
+ if self._status and len(self._status) == 1 and self._status[0] == "corrupted":
+ self._status = None
def is_installed(self):
return self._settings.vartree.dbapi.cpv_exists(self._cpv)