From b222d89418f36e6bcc71914728068bfadfd2c064 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 25 Apr 2012 09:35:42 +0000 Subject: simplify (even more) pango-querymodules32 usage (Portage version: 2.2.0_alpha84/cvs/Linux x86_64, RepoMan options: --force) --- .../emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.ebuild | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.ebuild') diff --git a/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.ebuild b/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.ebuild index 7afc23dcb8e4..de9c8a65738f 100644 --- a/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.ebuild +++ b/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.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/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.ebuild,v 1.5 2012/04/25 09:32:54 lxnay Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.ebuild,v 1.6 2012/04/25 09:35:42 lxnay Exp $ EAPI="4" @@ -58,9 +58,8 @@ pkg_postinst() { # be atomic! pango-querymodules32 > "${tmp_file}" if [ "${?}" = "0" ]; then - cat "${tmp_file}" > "${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}" -- cgit v1.2.3-65-gdbad