make default for optional modules to module instead of base

This commit is contained in:
Chris PeBenito 2005-08-15 20:31:37 +00:00
parent 4806a05cfb
commit a573790b4d
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,5 @@
* Change sedoctool to make required modules part of base
by default, otherwise make as modules, in modules.conf.
* Fix segenxml to handle modules with no interfaces.
* Rename ipsec connect interface for consistency.
* Add missing parts of unix stream socket connect interface

View File

@ -123,12 +123,23 @@ def gen_module_conf(doc, file_name, namevalue_list):
for line in s:
file_name.write("# %s\n" % line)
# If the module is set as disabled.
if [mod_name, MOD_DISABLED] in namevalue_list:
file_name.write("%s = %s\n\n" % (mod_name, MOD_DISABLED))
# If the module is set as enabled.
elif [mod_name, MOD_ENABLED] in namevalue_list:
file_name.write("%s = %s\n\n" % (mod_name, MOD_ENABLED))
else:
# If the module is set as base.
elif [mod_name, MOD_BASE] in namevalue_list:
file_name.write("%s = %s\n\n" % (mod_name, MOD_BASE))
# If the module is a new module.
else:
# Set the module to base if it is marked as required.
if mod_req:
file_name.write("%s = %s\n\n" % (mod_name, MOD_BASE))
# Set the module to enabled if it is not required.
else:
file_name.write("%s = %s\n\n" % (mod_name, MOD_ENABLED))
def get_conf(conf):
"""