diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-07-08 09:16:39 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-07-08 09:16:39 -0700 |
commit | a630e065339abdd76038da568000773bc56f1c97 (patch) | |
tree | 904bbc80c6c5cbd4a45881e560c421e87964d6e8 | |
parent | 585f0df6dba9bdea3884af84dc9c471014eed5ff (diff) | |
download | portage-a630e065339abdd76038da568000773bc56f1c97.tar.gz portage-a630e065339abdd76038da568000773bc56f1c97.tar.bz2 portage-a630e065339abdd76038da568000773bc56f1c97.zip |
getportageversion: omit implicit -r0 for libc
-rw-r--r-- | pym/_emerge/actions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 860192901..e57fd9345 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -2823,7 +2823,10 @@ def getportageversion(portdir, target_root, profile, chost, vardb): libclist.update(vardb.match(atom)) if libclist: for cpv in sorted(libclist): - libcver.append("-".join(portage.catpkgsplit(cpv)[1:])) + libc_split = portage.catpkgsplit(cpv)[1:] + if libc_split[-1] == "r0": + libc_split[:-1] + libcver.append("-".join(libc_split)) else: libcver = ["unavailable"] |