Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 429476 Details for
Bug 578826
env-update support for app-shells/fish
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
portage-2.2.28-env-update-fish-support.patch
portage-2.2.28-env-update-fish-support.patch (text/plain), 1.41 KB, created by
Dennis Schridde
on 2016-04-02 11:55:10 UTC
(
hide
)
Description:
portage-2.2.28-env-update-fish-support.patch
Filename:
MIME Type:
Creator:
Dennis Schridde
Created:
2016-04-02 11:55:10 UTC
Size:
1.41 KB
patch
obsolete
>--- /usr/lib/python2.7/site-packages/portage/util/env_update.py 2014-10-20 03:51:42.000000000 +0200 >+++ /usr/lib/pypy/site-packages/portage/util/env_update.py 2016-04-02 13:45:28.751487847 +0200 >@@ -9,6 +9,7 @@ > import stat > import sys > import time >+import string > > import portage > from portage import os, _encodings, _unicode_decode, _unicode_encode >@@ -334,8 +335,10 @@ > penvnotice = "# THIS FILE IS AUTOMATICALLY GENERATED BY env-update.\n" > penvnotice += "# DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES\n" > cenvnotice = penvnotice[:] >+ fenvnotice = penvnotice[:] > penvnotice += "# GO INTO /etc/profile NOT /etc/profile.env\n\n" > cenvnotice += "# GO INTO /etc/csh.cshrc NOT /etc/csh.env\n\n" >+ fenvnotice += "# GO INTO /etc/profile NOT /etc/profile.fish\n\n" > > #create /etc/profile.env for bash support > outfile = atomic_ofstream(os.path.join(eroot, "etc", "profile.env")) >@@ -357,3 +360,15 @@ > for x in env_keys: > outfile.write("setenv %s '%s'\n" % (x, env[x])) > outfile.close() >+ >+ #create /etc/profile.fish for fish support >+ outfile = atomic_ofstream(os.path.join(eroot, "etc", "profile.fish")) >+ outfile.write(fenvnotice) >+ >+ env_path = string.join(("'" + v + "'" for v in env["PATH"].split(":")), " ") >+ env_keys = [x for x in env if x != "PATH"] >+ env_keys.sort() >+ for k in env_keys: >+ outfile.write("set -x %s '%s'\n" % (k, env[k])) >+ outfile.write("set -x PATH %s $PATH\n" % env_path) >+ outfile.close()
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 578826
:
429476
|
429478
|
429480
|
436018
|
437932
|
438830
|
438832
|
459674
|
459676