]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dynconfig/wscript: Adjust default cleanup for waf 2.1.5
authorAndreas Schneider <asn@samba.org>
Thu, 8 May 2025 19:33:52 +0000 (20:33 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 16 May 2025 09:33:41 +0000 (09:33 +0000)
Using waf 2.1.5 parser.defaults no longer exists (that's part of
the optparse module and waf 2.1.5 uses argparse)
This patch adjusts the default cleanup for argparse.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
dynconfig/wscript

index c338fd348888c7987e0539552bec2afd6833ce34..2d7d79006fd74ee179203f7357b4def91788dd8c 100644 (file)
@@ -302,8 +302,7 @@ def options(opt):
         option = opt.parser.get_option(k)
         if option:
             opt.parser.remove_option(k)
-    del opt.parser.defaults['PRIVATELIBDIR']
-    del opt.parser.defaults['MODULESDIR']
+    opt.parser.set_defaults(PRIVATELIBDIR=None, MODULESDIR=None)
 
     # get all the basic GNU options from the gnu_dirs tool