[oe-commits] Richard Purdie : postfix: Add explict getVar expansion parameter

git at git.openembedded.org git at git.openembedded.org
Wed Jul 15 13:19:28 UTC 2015


Module: meta-openembedded.git
Branch: master
Commit: 66ba2ede1420dc8ab305da5b19772ffb499b9c97
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=66ba2ede1420dc8ab305da5b19772ffb499b9c97

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Wed Jul  8 18:00:55 2015 +0100

postfix: 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 *`

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald at mentor.com>

---

 meta-networking/recipes-daemons/postfix/postfix.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-networking/recipes-daemons/postfix/postfix.inc b/meta-networking/recipes-daemons/postfix/postfix.inc
index fa75a78..cd768cc 100644
--- a/meta-networking/recipes-daemons/postfix/postfix.inc
+++ b/meta-networking/recipes-daemons/postfix/postfix.inc
@@ -232,7 +232,7 @@ pkg_postinst_${PN} () {
         touch $D/etc/postfix/virtual_alias
         postmap -c $D/etc/postfix $D/etc/postfix/virtual_alias
 
-        if ${@'true' if 'linuxstdbase' in d.getVar('DISTROOVERRIDES') else 'false'}; then
+        if ${@'true' if 'linuxstdbase' in d.getVar('DISTROOVERRIDES', False) else 'false'}; then
             # /usr/lib/sendmial is required by LSB core test
             [ ! -L $D/usr/lib/sendmail ] && ln -sf ${sbindir}/sendmail $D/usr/lib/
         fi



More information about the Openembedded-commits mailing list