From 53d78d1612200b8634a478c1751923f18e64860a Mon Sep 17 00:00:00 2001 From: Fatih Arslan Date: Wed, 8 Sep 2010 08:36:59 +0000 Subject: [PATCH] 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. --- pisi/actionsapi/texlivemodules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/actionsapi/texlivemodules.py b/pisi/actionsapi/texlivemodules.py index 42f16122..48f2b525 100644 --- a/pisi/actionsapi/texlivemodules.py +++ b/pisi/actionsapi/texlivemodules.py @@ -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')