sys-libs/timezone-data: Do not call one phase function from other, bug 596642
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Mon, 2 Oct 2017 21:44:16 +0000 (23:44 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Mon, 2 Oct 2017 21:44:16 +0000 (23:44 +0200)
Closes: https://bugs.gentoo.org/596642
Package-Manager: Portage-2.3.10, Repoman-2.3.3

sys-libs/timezone-data/timezone-data-2017b.ebuild

index 44391256e07a47ae95b2868d6febae891b59b938..5ecd0a12ca0ee79fb0b95d00138d31c6a9b5ee4a 100644 (file)
@@ -115,7 +115,7 @@ pkg_preinst() {
        fi
 }
 
-pkg_config() {
+configure_tz_data() {
        # make sure the /etc/localtime file does not get stale #127899
        local tz src="${EROOT}etc/timezone" etc_lt="${EROOT}etc/localtime"
 
@@ -151,6 +151,10 @@ pkg_config() {
        cp -f "${EROOT}"/usr/share/zoneinfo/"${tz}" "${etc_lt}"
 }
 
+pkg_config() {
+       configure_tz_data
+}
+
 pkg_postinst() {
-       pkg_config
+       configure_tz_data
 }