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/package.py | |
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 'portato/backend/package.py')
-rw-r--r-- | portato/backend/package.py | 7 |
1 files changed, 3 insertions, 4 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""" |