1 |
commit: accf36f00070427170a4b46b2e3522de7b33d5b0 |
2 |
Author: cvkbtzx <cvkbtzx <AT> users <DOT> noreply <DOT> github <DOT> com> |
3 |
AuthorDate: Wed Sep 26 23:05:33 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 19 03:40:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=accf36f0 |
7 |
|
8 |
revdep-rebuild: Fix DEFAULTS beeing modified when changing settings |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoolkit/pull/4 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
pym/gentoolkit/revdep_rebuild/settings.py | 4 ++-- |
14 |
1 file changed, 2 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/pym/gentoolkit/revdep_rebuild/settings.py b/pym/gentoolkit/revdep_rebuild/settings.py |
17 |
index b0a9f61..7438594 100644 |
18 |
--- a/pym/gentoolkit/revdep_rebuild/settings.py |
19 |
+++ b/pym/gentoolkit/revdep_rebuild/settings.py |
20 |
@@ -119,9 +119,9 @@ def parse_options(): |
21 |
settings['PRETEND'] = args.pretend |
22 |
settings['nocolor'] = args.nocolor |
23 |
if args.library: |
24 |
- settings['library'].update(set(args.library)) |
25 |
+ settings['library'] = set(settings['library']) | set(args.library) |
26 |
settings['USE_TMP_FILES'] = not args.ignore |
27 |
- settings['pass_through_options'].extend(args.portage_options) |
28 |
+ settings['pass_through_options'] = list(settings['pass_through_options']) + args.portage_options |
29 |
|
30 |
return settings |