Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29486 - getgccversion doesn't import glob
Summary: getgccversion doesn't import glob
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on: 29488
Blocks:
  Show dependency tree
 
Reported: 2003-09-23 22:52 UTC by Jason A. Mobarak (RETIRED)
Modified: 2011-10-30 22:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge patch (emerge.patch,254 bytes, patch)
2003-09-23 23:01 UTC, Jason A. Mobarak (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason A. Mobarak (RETIRED) gentoo-dev 2003-09-23 22:52:05 UTC
The function getgccversion using the glob module but doesn't import it, so if
the user does not have a '/etc/env.d/gcc/config' file then 'emerge --version'
will break with a traceback. I don't know how often the 'config' file doesn't
exist, and as such, how many users this may affect.

"import glob" was included in the patch originally but for some reason it
brought out some very weird errors with python and mixing tabs and spaces, i.e.
the patch attached would break emerge.
Comment 1 Jason A. Mobarak (RETIRED) gentoo-dev 2003-09-23 23:01:08 UTC
Created attachment 18242 [details, diff]
emerge patch

diffed against 2.0.49-r6
Comment 2 Jason A. Mobarak (RETIRED) gentoo-dev 2003-09-23 23:05:25 UTC
I made this dependant on 29488 because if you apply this patch without applying the patches for 29488 and moving emergehelp.py to /usr/lib/python2.2/site-packages emerge will break.
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2003-09-26 06:42:12 UTC
Integrated.