Gentoo Archives: gentoo-catalyst

From: Matt Turner <mattst88@g.o>
To: gentoo-catalyst@l.g.o
Cc: Matt Turner <mattst88@g.o>
Subject: [gentoo-catalyst] [PATCH 12/21] catalyst: Disallow config file options in spec files
Date: Wed, 20 May 2020 03:43:05
Message-Id: 20200520034226.2870937-12-mattst88@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH 01/21] targets: Remove copy_{file,symlink,lib} functions by Matt Turner
1 Signed-off-by: Matt Turner <mattst88@g.o>
2 ---
3 catalyst/support.py | 3 +--
4 1 file changed, 1 insertion(+), 2 deletions(-)
5
6 diff --git a/catalyst/support.py b/catalyst/support.py
7 index 0925af47..c4a5c797 100644
8 --- a/catalyst/support.py
9 +++ b/catalyst/support.py
10 @@ -8,7 +8,6 @@ import time
11 from subprocess import Popen
12
13 from catalyst import log
14 -from catalyst.defaults import valid_config_file_values
15
16 BASH_BINARY = "/bin/bash"
17
18 @@ -211,7 +210,7 @@ def addl_arg_parse(myspec, addlargs, requiredspec, validspec):
19 "helper function to help targets parse additional arguments"
20 messages = []
21 for x in addlargs.keys():
22 - if x not in validspec and x not in valid_config_file_values and x not in requiredspec:
23 + if x not in validspec and x not in requiredspec:
24 messages.append("Argument \""+x+"\" not recognized.")
25 else:
26 myspec[x] = addlargs[x]
27 --
28 2.26.2