From: Zac Medico Date: Fri, 8 Jul 2011 16:16:39 +0000 (-0700) Subject: getportageversion: omit implicit -r0 for libc X-Git-Tag: v2.2.0_alpha44~43 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a630e065339abdd76038da568000773bc56f1c97;p=portage.git getportageversion: omit implicit -r0 for libc --- 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"]