diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-06-06 04:10:33 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-06-06 04:10:33 +0000 |
commit | 836b3c9b87ac2ff16a0d5136a03d3a506f2aaad3 (patch) | |
tree | b712eb798a3013b4fcf7a85531b5d4d9ab2354eb | |
parent | Store the original suid bits when suidctl is enabled for bug #135639. Thanks... (diff) | |
download | portage-multirepo-836b3c9b87ac2ff16a0d5136a03d3a506f2aaad3.tar.gz portage-multirepo-836b3c9b87ac2ff16a0d5136a03d3a506f2aaad3.tar.bz2 portage-multirepo-836b3c9b87ac2ff16a0d5136a03d3a506f2aaad3.zip |
Fix getgccversion() logic so that it works properly with eselect compiler for bug #108393. Thanks to eradicator for help with this patch.
svn path=/main/trunk/; revision=3463
-rwxr-xr-x | bin/emerge | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -535,11 +535,13 @@ def getgccversion(): "!!! other terminals also.\n" ) - mystatus, myoutput = commands.getstatusoutput("gcc-config -c") - if mystatus == os.EX_OK and len(myoutput.split("-")) > 0: - return gcc_ver_prefix + myoutput.split("-")[-1] - mystatus, myoutput = commands.getstatusoutput("eselect compiler show") + if mystatus == os.EX_OK and len(myoutput.split("/")) == 2: + part1, part2 = myoutput.split("/") + if len(part1.split("-")) > 0: + return gcc_ver_prefix + part1.split("-")[-1] + "/" + part2 + + mystatus, myoutput = commands.getstatusoutput("gcc-config -c") if mystatus == os.EX_OK and len(myoutput.split("-")) > 0: return gcc_ver_prefix + myoutput.split("-")[-1] |