Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 131900 Details for
Bug 131504
Insufficent parsing of make.conf by parse_makeconf function.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
try pkgcore and portage config parsing
catalyst.patch (text/plain), 1.64 KB, created by
Andrew Gaffney (RETIRED)
on 2007-09-25 22:01:09 UTC
(
hide
)
Description:
try pkgcore and portage config parsing
Filename:
MIME Type:
Creator:
Andrew Gaffney (RETIRED)
Created:
2007-09-25 22:01:09 UTC
Size:
1.64 KB
patch
obsolete
>Index: catalyst_support.py >=================================================================== >--- catalyst_support.py (revision 1244) >+++ catalyst_support.py (working copy) >@@ -634,16 +634,24 @@ > > def read_makeconf(mymakeconffile): > if os.path.exists(mymakeconffile): >- try: >- myf=open(mymakeconffile,"r") >- mylines=myf.readlines() >- myf.close() >- return parse_makeconf(mylines) >- except: >- raise CatalystError, "Could not open make.conf file "+mymakeconffile >+ try: >+ try: >+ import snakeoil.fileutils >+ return snakeoil.fileutils.read_bash_dict(mymakeconffile, sourcing_command="source") >+ except ImportError: >+ try: >+ import portage_util >+ return portage_util.getconfig(mymakeconffile, tolerant=1, allow_sourcing=True) >+ except ImportError: >+ myf=open(mymakeconffile,"r") >+ mylines=myf.readlines() >+ myf.close() >+ return parse_makeconf(mylines) >+ except: >+ raise CatalystError, "Could not parse make.conf file "+mymakeconffile > else: >- makeconf={} >- return makeconf >+ makeconf={} >+ return makeconf > > def msg(mymsg,verblevel=1): > if verbosity>=verblevel:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 131504
:
131229
| 131900