diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-03-30 07:20:59 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-03-30 07:20:59 +0000 |
commit | 69b074151e6a7da557876ae867cc6942091b14d2 (patch) | |
tree | ba62925c1e8a2639c857f328e57c6587512d3b19 /bin | |
parent | 62bf73db811607431fb8d16f6d728e957e3a7680 (diff) | |
download | portage-69b074151e6a7da557876ae867cc6942091b14d2.tar.gz portage-69b074151e6a7da557876ae867cc6942091b14d2.tar.bz2 portage-69b074151e6a7da557876ae867cc6942091b14d2.zip |
Bug #211365 - Use catpkgsplit() instead of pkgsplit() for a cpv.
(trunk r9625)
svn path=/main/branches/2.1.2/; revision=9626
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/emerge | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/emerge b/bin/emerge index a22aa6b7b..cfe84bdb8 100755 --- a/bin/emerge +++ b/bin/emerge @@ -608,7 +608,7 @@ class search: self.portdb.xmatch("match-all",match)) else: full_package = match - match = portage.pkgsplit(match)[0] + match = portage.cpv_getkey(match) if full_package: try: @@ -3696,7 +3696,8 @@ class depgraph: myprint="["+pkgprint(pkg_type)+" "+addl+"] "+indent+pkgprint(pkg_key)+" "+myoldbest+" "+verboseadd p.append(myprint) - mysplit = portage.pkgsplit(x[2]) + mysplit = [portage.cpv_getkey(pkg_key)] + \ + list(portage.catpkgsplit(pkg_key)[2:]) if "--tree" not in self.myopts and mysplit and \ len(mysplit) == 3 and mysplit[0] == "sys-apps/portage" and \ x[1] == "/": @@ -4453,8 +4454,8 @@ class MergeTask(object): "--fetch-all-uri" not in self.myopts: # Figure out if we need a restart. - mysplit=portage.pkgsplit(x[2]) - if mysplit[0] == "sys-apps/portage" and x[1] == "/": + if myroot == "/" and \ + portage.dep_getkey(pkg_key) == "sys-apps/portage": if "livecvsportage" not in self.settings.features: if len(mymergelist) > mergecount: emergelog(xterm_titles, |