diff options
author | Fabio Erculiani <lxnay@gentoo.org> | 2012-04-25 09:35:42 +0000 |
---|---|---|
committer | Fabio Erculiani <lxnay@gentoo.org> | 2012-04-25 09:35:42 +0000 |
commit | b222d89418f36e6bcc71914728068bfadfd2c064 (patch) | |
tree | 8803c3d48e03e0485dbfd370d073f913477f5082 /app-emulation | |
parent | simplify pango-querymodules32 usage (diff) | |
download | gentoo-2-b222d89418f36e6bcc71914728068bfadfd2c064.tar.gz gentoo-2-b222d89418f36e6bcc71914728068bfadfd2c064.tar.bz2 gentoo-2-b222d89418f36e6bcc71914728068bfadfd2c064.zip |
simplify (even more) pango-querymodules32 usage
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'app-emulation')
3 files changed, 12 insertions, 9 deletions
diff --git a/app-emulation/emul-linux-x86-gtklibs/ChangeLog b/app-emulation/emul-linux-x86-gtklibs/ChangeLog index 501a41912403..26b4c1e19315 100644 --- a/app-emulation/emul-linux-x86-gtklibs/ChangeLog +++ b/app-emulation/emul-linux-x86-gtklibs/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-emulation/emul-linux-x86-gtklibs # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog,v 1.98 2012/04/25 09:32:54 lxnay Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog,v 1.99 2012/04/25 09:35:42 lxnay Exp $ + + 25 Apr 2012; Fabio Erculiani <lxnay@gentoo.org> + emul-linux-x86-gtklibs-20110928.ebuild, + emul-linux-x86-gtklibs-20120127.ebuild: + simplify (even more) pango-querymodules32 usage 25 Apr 2012; Fabio Erculiani <lxnay@gentoo.org> emul-linux-x86-gtklibs-20110928.ebuild, diff --git a/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20110928.ebuild b/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20110928.ebuild index e434dcfdb9b2..5554bb436dba 100644 --- a/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20110928.ebuild +++ b/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20110928.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-20110928.ebuild,v 1.7 2012/04/25 09:32:54 lxnay Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20110928.ebuild,v 1.8 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}" 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}" |