diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-04-17 10:25:39 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-04-17 10:25:39 +0200 |
commit | c8ab8375fe4f719ca484b0f395fd3812c73444aa (patch) | |
tree | faf16972e1931fe655c6d8fdff5a14f515cba4a6 /portato/backend | |
parent | c700865daffd778e9e9eada8d2c5b4e37dc2798f (diff) | |
download | portato-c8ab8375fe4f719ca484b0f395fd3812c73444aa.tar.gz portato-c8ab8375fe4f719ca484b0f395fd3812c73444aa.tar.bz2 portato-c8ab8375fe4f719ca484b0f395fd3812c73444aa.zip |
Changed 'is_overlay' to 'is_in_overlay'
Diffstat (limited to '')
-rw-r--r-- | portato/backend/package.py | 7 | ||||
-rw-r--r-- | portato/backend/portage/package.py | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/portato/backend/package.py b/portato/backend/package.py index 1e17b1f..16148d2 100644 --- a/portato/backend/package.py +++ b/portato/backend/package.py @@ -165,9 +165,8 @@ class Package (_Package): p = self.get_ebuild_path() sp = p.split("/") - if len(sp): - import string - return string.join(sp[:-1],"/") + if sp: + return "/".join(sp[:-1]) def get_dependencies (self): """ @@ -243,7 +242,7 @@ class Package (_Package): raise NotImplementedError - def is_overlay(self): + def is_in_overlay(self): """Returns true if the package is in an overlay. @rtype: boolean""" diff --git a/portato/backend/portage/package.py b/portato/backend/portage/package.py index dc3cde3..5f1fa74 100644 --- a/portato/backend/portage/package.py +++ b/portato/backend/portage/package.py @@ -88,7 +88,7 @@ class PortagePackage (Package): def is_installed(self): return self._settings.vartree.dbapi.cpv_exists(self._cpv) - def is_overlay(self): + def is_in_overlay(self): dir,ovl = self._settings.porttree.dbapi.findname2(self._cpv) return ovl != self._settings.settings["PORTDIR"] and str(ovl) != "0" |