1 |
On Sat, 21 Feb 2015 11:41:03 -0800 |
2 |
Pavel Kazakov <nullishzero@g.o> wrote: |
3 |
|
4 |
> Due to a change to the constant PORTAGE_BIN_PATH, the emaint merges |
5 |
> module needs to be updated to properly call the emerge command. |
6 |
> Furthermore, the --ask flag is set to prompt users before attempting |
7 |
> to emerge any packages--thanks to Nikoli for the idea. |
8 |
> --- |
9 |
> pym/portage/emaint/modules/merges/merges.py | 6 +++--- |
10 |
> 1 file changed, 3 insertions(+), 3 deletions(-) |
11 |
> |
12 |
> diff --git a/pym/portage/emaint/modules/merges/merges.py |
13 |
> b/pym/portage/emaint/modules/merges/merges.py index 7146c76..8f677c2 |
14 |
> 100644 --- a/pym/portage/emaint/modules/merges/merges.py |
15 |
> +++ b/pym/portage/emaint/modules/merges/merges.py |
16 |
> @@ -3,8 +3,7 @@ |
17 |
> |
18 |
> import portage |
19 |
> from portage import os, _unicode_encode |
20 |
> -from portage.const import MERGING_IDENTIFIER, PORTAGE_BIN_PATH, |
21 |
> PRIVATE_PATH, \ |
22 |
> - VDB_PATH |
23 |
> +from portage.const import MERGING_IDENTIFIER, EPREFIX, PRIVATE_PATH, |
24 |
> VDB_PATH from portage.dep import isvalidatom |
25 |
> |
26 |
> import shutil |
27 |
> @@ -206,7 +205,8 @@ class MergesHandler(object): |
28 |
> emerge_cmd = ( |
29 |
> portage._python_interpreter, |
30 |
> '-b', |
31 |
> - os.path.join(PORTAGE_BIN_PATH, 'emerge'), |
32 |
> + os.path.join(EPREFIX or '/', 'usr', 'bin', |
33 |
> 'emerge'), |
34 |
> + '--ask', |
35 |
> '--quiet', |
36 |
> '--oneshot', |
37 |
> '--complete-graph=y' |
38 |
|
39 |
LGTM, merge please :) |
40 |
|
41 |
-- |
42 |
Brian Dolbec <dolsen> |