diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-02-17 18:56:11 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-02-17 18:56:11 +0000 |
commit | cef5abd5cf040d5fa0a1c23520570c94a87bcf18 (patch) | |
tree | f6bcc92333a4bb12814a031e72c451a874fa6869 | |
parent | 3066c7248507c533740560dd29d33a318e6ec97c (diff) | |
download | portage-cef5abd5cf040d5fa0a1c23520570c94a87bcf18.tar.gz portage-cef5abd5cf040d5fa0a1c23520570c94a87bcf18.tar.bz2 portage-cef5abd5cf040d5fa0a1c23520570c94a87bcf18.zip |
Store split lines in myupd so that they don't need to be split again later.
svn path=/main/trunk/; revision=2726
-rw-r--r-- | pym/portage.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/pym/portage.py b/pym/portage.py index 2231cebe9..ad5c5f359 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5362,7 +5362,6 @@ class binarytree(packagetree): if not self.populated: self.populate() - update_list = map(lambda x: x.split(), mybiglist) for mycpv in self.dbapi.cp_all(): tbz2path=self.getname(mycpv) if os.path.exists(tbz2path) and not os.access(tbz2path,os.W_OK): @@ -5372,7 +5371,7 @@ class binarytree(packagetree): writemsg("*") mytbz2=xpak.tbz2(tbz2path) mytbz2.decompose(mytmpdir,cleanup=1) - fixdbentries(update_list, mytmpdir) + fixdbentries(mybiglist, mytmpdir) mytbz2.recompose(mytmpdir,cleanup=1) return 1 @@ -6801,10 +6800,9 @@ def do_upgrade(mykey): continue worldlist=grabfile("/"+WORLD_FILE) - myupd=grabfile(mykey) + myupd = map(lambda x: x.split(), grabfile(mykey)) db["/"]["bintree"]=binarytree("/",settings["PKGDIR"],virts) - for myline in myupd: - mysplit=myline.split() + for mysplit in myupd: if not len(mysplit): continue if mysplit[0]!="move" and mysplit[0]!="slotmove": @@ -6828,7 +6826,7 @@ def do_upgrade(mykey): db["/"]["bintree"].move_ent(mysplit) except portage_exception.InvalidPackageName, e: writemsg("\nERROR: Malformed update entry '%s'\n" % myline) - myupd.remove(myline) # myupd is used by fixpackages later + myupd.remove(mysplit) # myupd is used by fixpackages later continue #update world entries: for x in range(0,len(worldlist)): |