summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/backend/package.py7
-rw-r--r--portato/backend/portage/package.py2
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"