Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 774945 Details for
Bug 839777
Add more portage hooks
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
portage_emergerc_functions.patch
portage_emergerc_functions.patch (text/plain), 958 bytes, created by
Pascal Jäger
on 2022-04-26 20:31:00 UTC
(
hide
)
Description:
portage_emergerc_functions.patch
Filename:
MIME Type:
Creator:
Pascal Jäger
Created:
2022-04-26 20:31:00 UTC
Size:
958 bytes
patch
obsolete
>diff --git a/lib/_emerge/actions.py b/lib/_emerge/actions.py >index 515b22b..11c80ad 100644 >--- a/lib/_emerge/actions.py >+++ b/lib/_emerge/actions.py >@@ -518,6 +518,16 @@ def action_build( > if mergecount != 0: > myopts.pop("--ask", None) > >+ emergerc_bin = os.path.join("/", portage.const.PORTAGE_BIN_PATH, "emergerc-functions.sh") >+ emergerc_script = os.path.join("/", portage.const.USER_CONFIG_PATH, "emergerc") >+ shproc = subprocess.Popen(["/bin/sh"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) >+ shproc.stdin.write("source " + emergerc_bin + ";") >+ shproc.stdin.write("[[ -f " + emergerc_script + " ]] && source " + emergerc_script + ";") >+ shproc.stdin.write("firstEmerge_hooks;") >+ output = shproc.communicate() >+ for line in output: >+ print(line) >+ > if ("--pretend" in myopts) and not ( > "--fetchonly" in myopts or "--fetch-all-uri" in myopts > ):
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 839777
: 774945 |
774948
|
774951