1 |
bin/isolated-functions.sh contains at least 1 useful function, which could be exposed for external consumers |
2 |
(without __ prefix), but must have private name (with __ prefix) when bin/isolated-functions.sh is used in |
3 |
ebuild environment. |
4 |
|
5 |
Possible solutions: |
6 |
1. Make /usr/lib/portage/bin/isolated-functions.sh magically define non-private variants of useful functions |
7 |
when run in non-ebuild environment. |
8 |
2. Provide /usr/bin/portage.bash, which would source isolated-functions.sh (and maybe other files) and define |
9 |
non-private variants of useful functions. /usr/bin/portage.bash would be easier sourceable due to PATH. |
10 |
3. Provide /usr/lib/portage.bash, which would source isolated-functions.sh (and maybe other files) and define |
11 |
non-private variants of useful functions. |
12 |
4. Another location... |
13 |
|
14 |
(I would probably prefer solution #2.) |
15 |
|
16 |
-- |
17 |
Arfrever Frehtes Taifersar Arahesis |