mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Fix 'config.py set' without --force
The `set` command can act on any known symbol.
This commit is contained in:
committed by
Darryl Green
parent
a26ea87dde
commit
5d650c86b4
@ -377,7 +377,7 @@ if __name__ == '__main__':
|
|||||||
sys.stdout.write(value + '\n')
|
sys.stdout.write(value + '\n')
|
||||||
return args.symbol not in config
|
return args.symbol not in config
|
||||||
elif args.command == 'set':
|
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 {} "
|
sys.stderr.write("A #define for the symbol {} "
|
||||||
"was not found in {}"
|
"was not found in {}"
|
||||||
.format(args.symbol, args.file))
|
.format(args.symbol, args.file))
|
||||||
|
Reference in New Issue
Block a user