sys-libs/timezone-data: add a message about empty /etc/localtime files #570388
authorMike Frysinger <vapier@gentoo.org>
Sat, 2 Jan 2016 05:22:52 +0000 (00:22 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 2 Jan 2016 05:26:48 +0000 (00:26 -0500)
sys-libs/timezone-data/timezone-data-2015g.ebuild

index fdeb5231eeedda45247e5ce2bc6bf2b407a4a1e7..62ca81257edd78e6d704a704d0c5dbffd22cb74a 100644 (file)
@@ -113,7 +113,10 @@ pkg_config() {
                return 0
        fi
 
-       tz=$(get_TIMEZONE) || return 0
+       if ! tz=$(get_TIMEZONE) ; then
+               einfo "Assuming your empty ${etc_lt} file is what you want; skipping update."
+               return 0
+       fi
        if [[ ${tz} == "FOOKABLOIE" ]] ; then
                elog "You do not have TIMEZONE set in ${src}."