Minor code reorganization.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34526 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-05-27 15:16:23 +00:00
parent 25e960b8fd
commit 434af7df28

View File

@ -1139,7 +1139,11 @@ def processModuleFile(file, bool_docbook):
if res != None:
catgy = res.group(1)
continue
if modname != "":
if modname == "":
logger.warning("Module file without \DeclareLyXModule line. ")
return ""
if pkgs != "":
# this module has some latex dependencies:
# append the dependencies to chkmodules.tex,
@ -1157,8 +1161,7 @@ def processModuleFile(file, bool_docbook):
cm.write(line + '\n')
cm.close()
return '"%s" "%s" "%s" "%s" "%s" "%s" "%s"\n' % (modname, filename, desc, pkgs, req, excl, catgy)
logger.warning("Module file without \DeclareLyXModule line. ")
return ""
def checkTeXAllowSpaces():