diff options
Diffstat (limited to 'x11-libs/pango/pango-1.28.4.ebuild')
-rw-r--r-- | x11-libs/pango/pango-1.28.4.ebuild | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/x11-libs/pango/pango-1.28.4.ebuild b/x11-libs/pango/pango-1.28.4.ebuild index 92b885db5c79..2b8becb33f22 100644 --- a/x11-libs/pango/pango-1.28.4.ebuild +++ b/x11-libs/pango/pango-1.28.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/pango/pango-1.28.4.ebuild,v 1.18 2012/04/25 06:30:19 lxnay Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/pango/pango-1.28.4.ebuild,v 1.19 2012/04/25 09:42:36 lxnay Exp $ EAPI="3" GCONF_DEBUG="yes" @@ -78,18 +78,14 @@ pkg_postinst() { fi mkdir -p "${PANGO_CONFDIR}" - pango_conf="${PANGO_CONFDIR}/pango.modules" - tmp_pango_conf="${PANGO_CONFDIR}/._tmp_ebuild_pango.modules" + local pango_conf="${PANGO_CONFDIR}/pango.modules" + local tmp_file=$(mktemp -t tmp.XXXXXXXXXXgdk_pixbuf_ebuild) - tmp_file=$(mktemp -t tmp.XXXXXXXXXXgdk_pixbuf_ebuild) # be atomic! pango-querymodules > "${tmp_file}" if [ "${?}" = "0" ]; then - cp -p "${pango_conf}" "${tmp_pango_conf}" && \ - cat "${tmp_file}" > "${tmp_pango_conf}" && \ - mv "${tmp_pango_conf}" "${pango_conf}" - fi - if [ "${?}" != "0" ]; then + cat "${tmp_file}" > "${pango_conf}" || die + else ewarn "Cannot update pango.modules, file generation failed" fi rm "${tmp_file}" |