diff options
-rw-r--r-- | pym/portage.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pym/portage.py b/pym/portage.py index eae73be78..178dacf62 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5639,11 +5639,8 @@ class binarytree(packagetree): def getname(self,pkgname): "returns file location for this particular package" - mysplit=string.split(pkgname,"/") - if len(mysplit)==1: - return self.pkgdir+"/All/"+self.resolve_specific(pkgname)+".tbz2" - else: - return self.pkgdir+"/All/"+mysplit[1]+".tbz2" + return os.path.join(self.pkgdir, + "All", catsplit(pkgname)[1] + ".tbz2") def isremote(self,pkgname): "Returns true if the package is kept remotely." |