diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-06-07 16:26:26 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-06-07 16:26:26 +0200 |
commit | 83e6f0a0c43e82b0c5a932883216066bb53cf666 (patch) | |
tree | 65386eda7d2e05fdafcf063d123f87fda4c4da32 | |
parent | 91e0cff038076d1f79ac707cfc024a1d919a93a9 (diff) | |
download | portato-83e6f0a0c43e82b0c5a932883216066bb53cf666.tar.gz portato-83e6f0a0c43e82b0c5a932883216066bb53cf666.tar.bz2 portato-83e6f0a0c43e82b0c5a932883216066bb53cf666.zip |
Also print ebuild and changelog if the package is not in system anymore
Diffstat (limited to '')
-rw-r--r-- | portato/backend/portage/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/portato/backend/portage/package.py b/portato/backend/portage/package.py index dc3cde3..63cec93 100644 --- a/portato/backend/portage/package.py +++ b/portato/backend/portage/package.py @@ -271,7 +271,10 @@ class PortagePackage (Package): return v def get_ebuild_path(self): - return self._settings.porttree.dbapi.findname(self._cpv) + if self.is_in_system(): + return self._settings.porttree.dbapi.findname(self._cpv) + else: + return self._settings.vartree.dbapi.findname(self._cpv) def get_files (self): if self.is_installed(): |