fix no interface module handling in segenxml
This commit is contained in:
parent
052c953ae5
commit
e694b51e6b
@ -1,3 +1,4 @@
|
|||||||
|
* Fix segenxml to handle modules with no interfaces.
|
||||||
* Rename ipsec connect interface for consistency.
|
* Rename ipsec connect interface for consistency.
|
||||||
* Add missing parts of unix stream socket connect interface
|
* Add missing parts of unix stream socket connect interface
|
||||||
of ipsec.
|
of ipsec.
|
||||||
|
@ -215,9 +215,13 @@ def getModuleXML(file_name):
|
|||||||
temp_buf = []
|
temp_buf = []
|
||||||
module_buf.append("</template>\n")
|
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
|
# If there are XML comments at the end of the file, they arn't
|
||||||
# attributed to anything. These are ignored.
|
# 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)
|
warning("orphan XML comments at bottom of file %s" % file_name)
|
||||||
|
|
||||||
module_buf.append("</module>\n")
|
module_buf.append("</module>\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user