summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kconfiglib.py2
-rwxr-xr-xsetconfig.py11
2 files changed, 7 insertions, 6 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index aa036ec..1faa603 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -4473,7 +4473,7 @@ class Symbol(object):
value = STR_TO_TRI[value]
# If the new user value matches the old, nothing changes, and we can
- # save some work.
+ # avoid invalidating cached values.
#
# This optimization is skipped for choice symbols: Setting a choice
# symbol's user value to y might change the state of the choice, so it
diff --git a/setconfig.py b/setconfig.py
index 2a14310..b689754 100755
--- a/setconfig.py
+++ b/setconfig.py
@@ -38,15 +38,15 @@ def main():
parser.add_argument(
"--no-check-exists",
- dest='check_exists',
- action='store_false',
+ dest="check_exists",
+ action="store_false",
help="Ignore assignments to non-existent symbols instead of erroring "
"out")
parser.add_argument(
"--no-check-value",
- dest='check_value',
- action='store_false',
+ dest="check_value",
+ action="store_false",
help="Ignore assignments that didn't \"take\" (where the symbol got a "
"different value, e.g. due to unsatisfied dependencies) instead "
"of erroring out")
@@ -76,7 +76,8 @@ def main():
if not sym.set_value(value):
sys.exit("error: '{}' is an invalid value for the {} symbol {}"
- .format(value, kconfiglib.TYPE_TO_STR[sym.type], name))
+ .format(value, kconfiglib.TYPE_TO_STR[sym.orig_type],
+ name))
if args.check_value and sym.str_value != value:
sys.exit("error: {} was assigned the value '{}', but got the "