1 |
Remove the --autounmask option from emerge. Please note that removing |
2 |
the option does not mean that the variable used for keeping track of |
3 |
autounmasking is not removed from depgraph.py. |
4 |
--- |
5 |
man/emerge.1 | 33 ++++++++++----------------------- |
6 |
pym/_emerge/depgraph.py | 3 +-- |
7 |
pym/_emerge/main.py | 9 --------- |
8 |
3 files changed, 11 insertions(+), 34 deletions(-) |
9 |
|
10 |
diff --git a/man/emerge.1 b/man/emerge.1 |
11 |
index c59185f..58bdc94 100644 |
12 |
--- a/man/emerge.1 |
13 |
+++ b/man/emerge.1 |
14 |
@@ -322,38 +322,25 @@ invalid input. This helps prevent accidental |
15 |
acceptance of the first choice. This option is |
16 |
intended to be set in the \fBmake.conf\fR(5) |
17 |
\fBEMERGE_DEFAULT_OPTS\fR variable. |
18 |
-.TP |
19 |
-.BR "\-\-autounmask [ y | n ]" |
20 |
-Automatically unmask packages and generate package.use |
21 |
-settings as necessary to satisfy dependencies. This |
22 |
-option is enabled by default. If any configuration |
23 |
-changes are required, then they will be displayed |
24 |
-after the merge list and emerge will immediately |
25 |
-abort. If the displayed configuration changes are |
26 |
-satisfactory, you should copy and paste them into |
27 |
-the specified configuration file(s), or enable the |
28 |
\fB\-\-autounmask\-write\fR option. The |
29 |
\fBEMERGE_DEFAULT_OPTS\fR variable may be used to |
30 |
disable this option by default in \fBmake.conf\fR(5). |
31 |
.TP |
32 |
.BR "\-\-autounmask\-unrestricted\-atoms [ y | n ]" |
33 |
-If \-\-autounmask is enabled, keyword and mask changes |
34 |
-using the \'=\' operator will be written. With this |
35 |
-option, \'>=\' operators will be used whenever possible. |
36 |
-USE and license changes always use the latter behavior. |
37 |
+Keyword and mask changes using the \'=\' operator will be written. With this |
38 |
+option, \'>=\' operators will be used whenever possible. USE and license |
39 |
+changes always use the latter behavior. |
40 |
.TP |
41 |
.BR "\-\-autounmask\-keep\-masks [ y | n ]" |
42 |
-If \-\-autounmask is enabled, no package.unmask or ** keyword changes |
43 |
-will be created. This leads to unsatisfied dependencies if |
44 |
-no other solution exists. |
45 |
+No package.unmask or ** keyword changes will be created if this is activated. |
46 |
+This leads to unsatisfied dependencies if no other solution exists. |
47 |
.TP |
48 |
.BR "\-\-autounmask\-write [ y | n ]" |
49 |
-If \-\-autounmask is enabled, changes are written |
50 |
-to config files, respecting \fBCONFIG_PROTECT\fR and \fB\-\-ask\fR. |
51 |
-If the corresponding package.* is a file, the changes are appended to |
52 |
-it, if it is a directory, changes are written to the lexicographically |
53 |
-last file. This way it is always ensured that the new changes take |
54 |
-precedence over existing changes. |
55 |
+Write required unmask changes to the relevant config files, respecting |
56 |
+\fBCONFIG_PROTECT\fR and \fB\-\-ask\fR. If the corresponding package.* is a |
57 |
+file, the changes are appended to it, if it is a directory, changes are written |
58 |
+to the lexicographically last file. This way it is always ensured that the new |
59 |
+changes take precedence over existing changes. |
60 |
.TP |
61 |
.BR \-\-backtrack=COUNT |
62 |
Specifies an integer number of times to backtrack if |
63 |
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py |
64 |
index 7b77edc..9fdfa43 100644 |
65 |
--- a/pym/_emerge/depgraph.py |
66 |
+++ b/pym/_emerge/depgraph.py |
67 |
@@ -427,7 +427,7 @@ class _dynamic_depgraph_config(object): |
68 |
self._backtrack_infos = {} |
69 |
|
70 |
self._buildpkgonly_deps_unsatisfied = False |
71 |
- self._autounmask = depgraph._frozen_config.myopts.get('--autounmask') != 'n' |
72 |
+ self._autounmask = True |
73 |
self._success_without_autounmask = False |
74 |
self._traverse_ignored_deps = False |
75 |
self._complete_mode = False |
76 |
@@ -7971,7 +7971,6 @@ def _backtrack_depgraph(settings, trees, myopts, myparams, myaction, myfiles, sp |
77 |
"\n\nautounmask breakage detected\n\n", |
78 |
noiselevel=-1, level=logging.DEBUG) |
79 |
mydepgraph.display_problems() |
80 |
- myopts["--autounmask"] = "n" |
81 |
mydepgraph = depgraph(settings, trees, myopts, myparams, spinner, |
82 |
frozen_config=frozen_config, allow_backtracking=False) |
83 |
success, favorites = mydepgraph.select_files(myfiles) |
84 |
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py |
85 |
index 89413a9..fc73ef7 100644 |
86 |
--- a/pym/_emerge/main.py |
87 |
+++ b/pym/_emerge/main.py |
88 |
@@ -123,7 +123,6 @@ def insert_optional_args(args): |
89 |
|
90 |
default_arg_opts = { |
91 |
'--ask' : y_or_n, |
92 |
- '--autounmask' : y_or_n, |
93 |
'--autounmask-keep-masks': y_or_n, |
94 |
'--autounmask-unrestricted-atoms' : y_or_n, |
95 |
'--autounmask-write' : y_or_n, |
96 |
@@ -303,11 +302,6 @@ def parse_opts(tmpcmdline, silent=False): |
97 |
"choices" : true_y_or_n |
98 |
}, |
99 |
|
100 |
- "--autounmask": { |
101 |
- "help" : "automatically unmask packages", |
102 |
- "choices" : true_y_or_n |
103 |
- }, |
104 |
- |
105 |
"--autounmask-unrestricted-atoms": { |
106 |
"help" : "write autounmask changes with >= atoms if possible", |
107 |
"choices" : true_y_or_n |
108 |
@@ -673,9 +667,6 @@ def parse_opts(tmpcmdline, silent=False): |
109 |
else: |
110 |
myoptions.ask = None |
111 |
|
112 |
- if myoptions.autounmask in true_y: |
113 |
- myoptions.autounmask = True |
114 |
- |
115 |
if myoptions.autounmask_unrestricted_atoms in true_y: |
116 |
myoptions.autounmask_unrestricted_atoms = True |
117 |
|
118 |
-- |
119 |
1.8.3.2 |