Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 747183 Details for
Bug 777393
[Feature Request] sys-apps/portage: Make env-update execute post-update scripts
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated to work with 3.0.28
portage-3.0.28-env-update-post-update.patch (text/plain), 1.17 KB, created by
konsolebox
on 2021-10-29 06:33:46 UTC
(
hide
)
Description:
Updated to work with 3.0.28
Filename:
MIME Type:
Creator:
konsolebox
Created:
2021-10-29 06:33:46 UTC
Size:
1.17 KB
patch
obsolete
>diff --git a/lib/portage/util/env_update.py b/lib/portage/util/env_update.py >index bb0ebf8..aef5b6d 100644 >--- a/lib/portage/util/env_update.py >+++ b/lib/portage/util/env_update.py >@@ -26,6 +26,7 @@ from portage.util import ( > from portage.util.listdir import listdir > from portage.dbapi.vartree import vartree > from portage.package.ebuild.config import config >+from portage.process import spawn > > > def env_update( >@@ -444,3 +445,19 @@ def _env_update(makelinks, target_root, prev_mtimes, contents, env, writemsg_lev > for x in env_keys: > outfile.write("setenv %s '%s'\n" % (x, env[x])) > outfile.close() >+ >+ # execute +x scripts in /etc/env-update.d/ >+ env_update_d_dir = os.path.join(eroot, "etc", "env-update.d") >+ ensure_dirs(env_update_d_dir, mode=0o755) >+ fns = listdir(env_update_d_dir, EmptyOnError=1) >+ fns.sort() >+ for x in fns: >+ if len(x) < 3: >+ continue >+ if not x[0].isdigit() or not x[1].isdigit(): >+ continue >+ if x.startswith(".") or x.endswith("~") or x.endswith(".bak"): >+ continue >+ x = os.path.join(env_update_d_dir, x) >+ if os.access(x, os.X_OK): >+ spawn(x)
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 777393
:
692598
|
692676
|
692688
|
692691
|
692721
|
692730
| 747183