From: Matthieu Patou Date: Wed, 8 Feb 2017 20:01:50 +0000 (-0800) Subject: wafsamba: Remove 2010 comments that seems not accurate anymore X-Git-Tag: talloc-2.1.9~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e2a36774f44cf711611fcd3cd3c2c66b9efd662;p=thirdparty%2Fsamba.git wafsamba: Remove 2010 comments that seems not accurate anymore In my tests default value is correctly used and if we provide explicitly a --with it will comply with the store_true and if we provide --without then it will comply with the store_false Change-Id: I820a7f2f08c51ec23b694bce7009c3891d4ab8ef Reviewed-by: Jeremy Allison --- diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py index f5c0c53a75e..0f95c125854 100644 --- a/buildtools/wafsamba/samba_utils.py +++ b/buildtools/wafsamba/samba_utils.py @@ -689,8 +689,6 @@ def samba_add_onoff_option(opt, option, help=(), dest=None, default=True, with_val = "--%s-%s" % (with_name, option) without_val = "--%s-%s" % (without_name, option) - #FIXME: This is broken and will always default to "default" no matter if - # --with or --without is chosen. opt.add_option(with_val, help=help, action="store_true", dest=dest, default=default) opt.add_option(without_val, help=SUPPRESS_HELP, action="store_false",