fix no interface module handling in segenxml

This commit is contained in:
Chris PeBenito 2005-08-11 14:55:41 +00:00
parent 052c953ae5
commit e694b51e6b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,4 @@
* Fix segenxml to handle modules with no interfaces.
* Rename ipsec connect interface for consistency.
* Add missing parts of unix stream socket connect interface
of ipsec.

View File

@ -215,9 +215,13 @@ def getModuleXML(file_name):
temp_buf = []
module_buf.append("</template>\n")
# The file had no interfaces, just a header.
if phase == "get header":
module_buf += temp_buf
# If there are XML comments at the end of the file, they arn't
# attributed to anything. These are ignored.
if len(temp_buf):
elif len(temp_buf):
warning("orphan XML comments at bottom of file %s" % file_name)
module_buf.append("</module>\n")