summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2015-04-08 14:40:44 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-15 18:12:42 +0100
commitaefa1a6eea07dd671d819c77b17dbd3ed50ab7d3 (patch)
tree7ec63aa327007d8d2459e366cc19593f581538fc /meta/recipes-extended
parentbd7710bff71726786e57a3e2a87000ecec88ee54 (diff)
downloadast2050-yocto-poky-aefa1a6eea07dd671d819c77b17dbd3ed50ab7d3.zip
ast2050-yocto-poky-aefa1a6eea07dd671d819c77b17dbd3ed50ab7d3.tar.gz
tzdata: fix postinst
* add quotes around possibly empty tz variable * use exit instead of return, because we're not in function and postinst fails: line 9: return: can only `return' from a function or sourced script" (From OE-Core master rev: 87429d37e72b1fd2f329d693b4d1b1229a90e0a2) (From OE-Core rev: ff58b2b6d07725adedddb709000775af8da3c5db) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/tzdata/tzdata.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-extended/tzdata/tzdata.inc b/meta/recipes-extended/tzdata/tzdata.inc
index 37ae926..ee56d36 100644
--- a/meta/recipes-extended/tzdata/tzdata.inc
+++ b/meta/recipes-extended/tzdata/tzdata.inc
@@ -60,8 +60,8 @@ pkg_postinst_${PN} () {
tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
fi
- if [ -z ${tz} ] ; then
- return 0
+ if [ -z "${tz}" ] ; then
+ exit 0
fi
if [ ! -e "$D${datadir}/zoneinfo/${tz}" ] ; then
OpenPOWER on IntegriCloud