actionsapi/texlivemodules: patterns have to be null string for change

If the key "patterns" do not have any value (null string), than it should be
replaced by "-". But the former condition was not able to catch up those null
strings. The condition has changed to work properly.
This commit is contained in:
Fatih Arslan
2010-09-08 08:36:59 +00:00
parent fe6fc233b8
commit 53d78d1612
+1 -1
View File
@@ -176,7 +176,7 @@ def addFormat(parameters):
pair = pair.split("=",1) # The value "options" may have multiple "=", thus split just one time
if len(pair) == 2: # The list may contain values that are not pair
para_dict[pair[0]] = pair[1]
if not pair[0] == "patterns":
if pair[0] == "patterns" and pair[1] == '':
para_dict["patterns"] = '-' # Specified in the texlive-module.eclass
cnf_file = open('%s/texmf/fmtutil/format.%s.cnf' % (get.curDIR(),get.srcNAME()), 'a')