mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 15:32:14 +02:00
tzdata: remove exit 0 from pkg_postinst
Documentation says that if you exit 0 in a pkg_postinst it will marked as installed. If you exit 0, before running postinst-intercepts defer_to_first_boot, the pkg_postinst_ontarget script will not be present on target. The "exit 0" in tzdata makes it difficult to have a bbappend with a pkg_postinst_target step when you have `INSTALL_TIMEZONE_FILE = 0` (From OE-Core rev: ebf675abd0a077bc9aa71acf62b0477a84e1f536) Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
47cc12f9df
commit
2aeba66c15
@@ -60,12 +60,8 @@ pkg_postinst_${PN} () {
|
||||
if [ -e ${src} ] ; then
|
||||
tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
|
||||
fi
|
||||
|
||||
if [ -z "${tz}" ] ; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ ! -e "$D${datadir}/zoneinfo/${tz}" ] ; then
|
||||
|
||||
if [ ! -z "${tz}" -a ! -e "$D${datadir}/zoneinfo/${tz}" ] ; then
|
||||
echo "You have an invalid TIMEZONE setting in ${src}"
|
||||
echo "Your ${etc_lt} has been reset to Universal; enjoy!"
|
||||
tz="Universal"
|
||||
|
||||
Reference in New Issue
Block a user