From 778e67236743cd5522e65c9606d5b61836acf829 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 15 Oct 2006 07:26:01 +0000 Subject: [PATCH] Simplify binarytree.getname(). svn path=/main/trunk/; revision=4704 --- pym/portage.py | 7 ++----- 1 file 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." -- 2.26.2