Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 25226 Details for
Bug 40302
ROOT configuration file support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to allow different config files than /etc/make.conf
make.conf-config.diff (text/plain), 800 bytes, created by
Marius Mauch (RETIRED)
on 2004-02-08 17:29:00 UTC
(
hide
)
Description:
patch to allow different config files than /etc/make.conf
Filename:
MIME Type:
Creator:
Marius Mauch (RETIRED)
Created:
2004-02-08 17:29:00 UTC
Size:
800 bytes
patch
obsolete
>--- pym/portage.py.org 2004-02-09 02:20:34.000000000 +0100 >+++ pym/portage.py 2004-02-09 02:18:27.000000000 +0100 >@@ -1241,7 +1242,13 @@ > self.configlist.append(self.mygcfg) > self.configdict["defaults"]=self.configlist[-1] > >- self.mygcfg=getconfig("/etc/make.conf") >+ if os.environ.has_key("PORTAGE_CONFIGFILE"): >+ self.mygcfg=getconfig(os.environ["PORTAGE_CONFIGFILE"]) >+ elif os.environ.has_key("ROOT") and os.environ["ROOT"] != "/" \ >+ and os.path.exists(os.environ["ROOT"])+"/etc/make.conf": >+ self.mygcfg=getconfig(os.environ["ROOT"]+"/etc/make.conf") >+ else: >+ self.mygcfg=getconfig("/etc/make.conf") > if self.mygcfg==None: > writemsg("!!! Parse error in /etc/make.conf.\n") > writemsg("!!! Incorrect multiline literals can cause this. Do not use them.\n")
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 40302
: 25226