From 98eb36557d53d89698391f49593a6b6e5b56fc99 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Sun, 28 Jul 2019 16:39:19 +0200 Subject: [PATCH] Fix 'config.py set' without --force The `set` command can act on any known symbol. --- scripts/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.py b/scripts/config.py index 3b2aa63a7..1a2b1595e 100755 --- a/scripts/config.py +++ b/scripts/config.py @@ -384,7 +384,7 @@ if __name__ == '__main__': sys.stdout.write(value + '\n') return args.symbol not in config elif args.command == 'set': - if not args.force and args.symbol not in config: + if not args.force and args.symbol not in config.settings: sys.stderr.write("A #define for the symbol {} " "was not found in {}" .format(args.symbol, args.file))