summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <sven.eden@prydeworx.com>2020-11-07 15:25:16 +0100
committerSven Eden <sven.eden@prydeworx.com>2020-11-07 15:25:16 +0100
commit0755fcf420d120b978cf6cf9364a26c6c0e67c0b (patch)
treebc70c012195e0e7d7453002b900b06074d534c0e
parentMark package.use flags as local rather than global. (diff)
downloadufed-0755fcf420d120b978cf6cf9364a26c6c0e67c0b.tar.gz
ufed-0755fcf420d120b978cf6cf9364a26c6c0e67c0b.tar.bz2
ufed-0755fcf420d120b978cf6cf9364a26c6c0e67c0b.zip
Remove -* from flag list as being very dangerous. (Bug 722856)HEADmaster
Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
-rw-r--r--Portage.pm15
1 files changed, 1 insertions, 14 deletions
diff --git a/Portage.pm b/Portage.pm
index 3b1791e..706af38 100644
--- a/Portage.pm
+++ b/Portage.pm
@@ -431,22 +431,9 @@ sub _determine_profiles
# No parameters accepted
sub _final_cleaning
{
- # The "disable all" flag is truncated to '*' by the parsing, but
- # it has to read '-*'.
- _add_temp("-*", "global");
-
- $_use_temp->{'-*'}{global}{descr} = "{Never enable any flags other than those specified in make.conf}";
- $_use_temp->{'-*'}{global}{conf} = 0; ## Can never be -1
-
- # Set it from the truncated config:
- if (defined($_use_temp->{'*'}{global})) {
- $_use_temp->{'*'}{global}{conf} > -1
- and $_use_temp->{'-*'}{global}{conf} = 1;
- }
-
# The following use flags are dangerous or internal only
# and must no be available using ufed:
- defined($_use_temp->{"*"}) and delete($_use_temp->{"*"});
+ defined($_use_temp->{"*"}) and delete($_use_temp->{"*"}); ## USE="-*"
defined($_use_temp->{"bootstrap"}) and delete($_use_temp->{"bootstrap"});
defined($_use_temp->{"build"}) and delete($_use_temp->{"build"});
defined($_use_temp->{"livecd"}) and delete($_use_temp->{"livecd"});