From e07db4e020220f4fda7264eff657a99b4fd1a22c Mon Sep 17 00:00:00 2001 From: lxnay Date: Tue, 22 Apr 2008 13:52:07 +0000 Subject: [PATCH] PortageInterface: - improve speed of get_installed_packages_counter() git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1834 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index 1aece9a06..6693a7ae2 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -9991,10 +9991,10 @@ class PortageInterface: for mypv in pvs: if mypv.startswith("-MERGING-"): continue - mypvpath = os.path.join(current_dirpath,mypv) + mypvpath = current_dirpath+"/"+mypv if not os.path.isdir(mypvpath): continue - mycounter_file = os.path.join(mypvpath,etpConst['spm']['xpak_entries']['counter']) + mycounter_file = mypvpath+"/"+etpConst['spm']['xpak_entries']['counter'] if not os.access(mycounter_file,os.R_OK): continue f = open(mycounter_file) @@ -10003,7 +10003,7 @@ class PortageInterface: except (IOError, ValueError): f.close() continue - installedAtoms.add((os.path.join(os.path.basename(current_dirpath),mypv),counter)) + installedAtoms.add((os.path.basename(current_dirpath)+"/"+mypv,counter)) return installedAtoms def refill_counter(self, dbdir = None):