automatically insert a leading/trailing space during +=/=+ catenations
authorPhil Blundell <philb@gnu.org>
Sat, 12 Jun 2004 11:54:24 +0000 (11:54 +0000)
committerPhil Blundell <philb@gnu.org>
Sat, 12 Jun 2004 11:54:24 +0000 (11:54 +0000)
bin/oe/parse/ConfHandler.py

index 295ed7a..66bf40d 100644 (file)
@@ -154,9 +154,9 @@ def feeder(lineno, s, fn, data = {}):
         elif "colon" in groupd and groupd["colon"] != None:
             val = oe.data.expand(groupd["value"], data)
         elif "append" in groupd and groupd["append"] != None:
-            val = (oe.data.getVar(key, data) or "") + groupd["value"]
+            val = "%s %s" % ((oe.data.getVar(key, data) or ""), groupd["value"])
         elif "prepend" in groupd and groupd["prepend"] != None:
-            val = groupd["value"] + (oe.data.getVar(key, data) or "")
+            val = "%s %s" % (groupd["value"], (oe.data.getVar(key, data) or ""))
         else:
             val = groupd["value"]
         if 'flag' in groupd and groupd['flag'] != None: