diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-04-07 21:16:18 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-04-07 21:16:18 +0000 |
commit | 2ed23f8989a4f6079dc89d512b2bb6f85034be2a (patch) | |
tree | d20fd4dccc5d198a3575819235006fdd08c07a44 /dev-libs/libxml2 | |
parent | Fixing samba dep (diff) | |
download | gentoo-2-2ed23f8989a4f6079dc89d512b2bb6f85034be2a.tar.gz gentoo-2-2ed23f8989a4f6079dc89d512b2bb6f85034be2a.tar.bz2 gentoo-2-2ed23f8989a4f6079dc89d512b2bb6f85034be2a.zip |
Try to clean .pyc / .pyo files in pkg_postrm() only when corresponding .py files were previously installed.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/libxml2')
-rw-r--r-- | dev-libs/libxml2/libxml2-2.7.7.ebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dev-libs/libxml2/libxml2-2.7.7.ebuild b/dev-libs/libxml2/libxml2-2.7.7.ebuild index 99c9a31c91a9..5b063dd00e79 100644 --- a/dev-libs/libxml2/libxml2-2.7.7.ebuild +++ b/dev-libs/libxml2/libxml2-2.7.7.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/libxml2-2.7.7.ebuild,v 1.2 2010/04/06 22:44:40 eva Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/libxml2-2.7.7.ebuild,v 1.3 2010/04/07 21:16:18 arfrever Exp $ EAPI="2" SUPPORT_PYTHON_ABIS="1" @@ -171,5 +171,7 @@ pkg_postinst() { } pkg_postrm() { - python_mod_cleanup drv_libxml2.py libxml2.py + if use python; then + python_mod_cleanup drv_libxml2.py libxml2.py + fi } |