Skip to contentSkip to conversation

postgresql: Add explict getVar expansion parameter

PATCH New Richard Purdie 1 participant 1 message Jul 8, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 postgresql: Add explict getVar expansion parameter

Bitbake is likely to require this parameter in future, add the default value.

Patch generated with the command:

sed -e 's:\(getVar([^,()]*\)\s*):\1, False):g' -i grep -ril getVar *

meta-oe/recipes-support/postgresql/postgresql.inc +2 -2
index c7aed9e..15fb7c7 100644
@@ -84,14 +84,14 @@ python populate_packages_prepend() {
         if name is None or name.strip() == "":
             return
 
-        fpack=d.getVar('PACKAGES') or ""
+        fpack=d.getVar('PACKAGES', False) or ""
         fpack="${PN}-" + name + " " + fpack
         if dbg:
             fpack="${PN}-" + name + "-dbg" + " " + fpack
         d.setVar('PACKAGES', fpack)
 
     conf=(d.getVar('PACKAGECONFIG', True) or "").split()
-    pack=d.getVar('PACKAGES') or ""
+    pack=d.getVar('PACKAGES', False) or ""
     bb.debug(1, "PACKAGECONFIG=%s" % conf)
     bb.debug(1, "PACKAGES1=%s" % pack )