only apply ?= assignments if variable is None, not if it is the empty string
authorPhil Blundell <philb@gnu.org>
Thu, 5 Aug 2004 20:33:18 +0000 (20:33 +0000)
committerPhil Blundell <philb@gnu.org>
Thu, 5 Aug 2004 20:33:18 +0000 (20:33 +0000)
bin/oe/parse/ConfHandler.py

index 6db74cc..2e17f7f 100644 (file)
@@ -152,7 +152,7 @@ def feeder(lineno, s, fn, data = {}):
             oe.data.setVarFlag(key, "export", 1, data)
         if "ques" in groupd and groupd["ques"] != None:
             val = oe.data.getVar(key, data)
-            if not val:
+            if val == None:
                 val = groupd["value"]
         elif "colon" in groupd and groupd["colon"] != None:
             val = oe.data.expand(groupd["value"], data)