Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 857693 Details for
Bug 901205
Allow to specify modules by path
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-Allow-to-specify-modules-by-path.patch
0001-Allow-to-specify-modules-by-path.patch (text/plain), 935 bytes, created by
Florian Schmaus
on 2023-03-14 15:00:29 UTC
(
hide
)
Description:
0001-Allow-to-specify-modules-by-path.patch
Filename:
MIME Type:
Creator:
Florian Schmaus
Created:
2023-03-14 15:00:29 UTC
Size:
935 bytes
patch
obsolete
>From 50df8f0669bf06c8a531c164a9699372b5a1a5ca Mon Sep 17 00:00:00 2001 >From: Florian Schmaus <flow@gentoo.org> >Date: Tue, 14 Mar 2023 15:23:07 +0100 >Subject: [PATCH] Allow to specify modules by path > >Signed-off-by: Florian Schmaus <flow@gentoo.org> >--- > libs/core.bash.in | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/libs/core.bash.in b/libs/core.bash.in >index 740354e2748b..b0623eb074fe 100644 >--- a/libs/core.bash.in >+++ b/libs/core.bash.in >@@ -69,6 +69,16 @@ die() { > # Find module and echo its filename. Die if module doesn't exist. > find_module() { > local modname=$1 modpath >+ >+ if [[ ${modname} == *.eselect && -f ${modname} ]]; then >+ echo "${modname}" >+ return >+ fi >+ >+ if [[ ${modname} == */* ]]; then >+ die -q "Can't load module ${modname}" >+ fi >+ > for modpath in "${ESELECT_MODULES_PATH[@]}"; do > if [[ -f ${modpath}/${modname}.eselect ]]; then > echo "${modpath}/${modname}.eselect" >-- >2.39.2 >
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 901205
:
857649
|
857653
|
857675
|
857693
|
857697