diff options
author | necoro <> | 2007-05-14 19:30:24 +0000 |
---|---|---|
committer | necoro <> | 2007-05-14 19:30:24 +0000 |
commit | fdc8ab4222e781544cba285564b5bb368b9734a1 (patch) | |
tree | cae80705cd3a8833343f460143b713bc688aeb73 /portato/backend/portage/package.py | |
parent | 8b5575f4ecff31de8e23b88dffb63b19ff2d2167 (diff) | |
download | portato-fdc8ab4222e781544cba285564b5bb368b9734a1.tar.gz portato-fdc8ab4222e781544cba285564b5bb368b9734a1.tar.bz2 portato-fdc8ab4222e781544cba285564b5bb368b9734a1.zip |
added the display of the masking reason
Diffstat (limited to '')
-rw-r--r-- | portato/backend/portage/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/portato/backend/portage/package.py b/portato/backend/portage/package.py index e39dbe2..9f40137 100644 --- a/portato/backend/portage/package.py +++ b/portato/backend/portage/package.py @@ -112,6 +112,14 @@ class PortagePackage (Package): return False + def get_masking_reason(self): + reason = portage.getmaskingreason(self.get_cpv(), settings = self._settings.settings) + + if reason: + return reason[:-1] # strip of last \n + else: + return reason + def get_all_use_flags (self, installed = False): if installed or not self.is_in_system(): tree = self._settings.vartree |