diff options
author | Luca Longinotti <chtekk@gentoo.org> | 2008-06-28 00:05:40 +0000 |
---|---|---|
committer | Luca Longinotti <chtekk@gentoo.org> | 2008-06-28 00:05:40 +0000 |
commit | 933e8152eed7957741d180cb3acc7905d38b67d5 (patch) | |
tree | 7c974bbe807a6b42839d3c47cb830b9b2b193bfd /eclass/distutils.eclass | |
parent | Eautoreconf to fix as-needed issues. Bug 229777. (diff) | |
download | historical-933e8152eed7957741d180cb3acc7905d38b67d5.tar.gz historical-933e8152eed7957741d180cb3acc7905d38b67d5.tar.bz2 historical-933e8152eed7957741d180cb3acc7905d38b67d5.zip |
Fix tests. Bash doesn't do filename expansion inside [[]].
Diffstat (limited to 'eclass/distutils.eclass')
-rw-r--r-- | eclass/distutils.eclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/distutils.eclass b/eclass/distutils.eclass index 8ce9aafd67b3..31f9f083d026 100644 --- a/eclass/distutils.eclass +++ b/eclass/distutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.50 2008/06/24 13:40:50 hawking Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.51 2008/06/28 00:05:40 chtekk Exp $ # @ECLASS: distutils.eclass # @MAINTAINER: @@ -90,8 +90,8 @@ distutils_src_install() { # @DESCRIPTION: # Generic pyc/pyo cleanup script. This function is exported. distutils_pkg_postrm() { - if [[ -z "${PYTHON_MODNAME}" &&\ - -d ${ROOT}/usr/$(get_libdir)/python*/site-packages/${PN} ]]; then + if [ -z "${PYTHON_MODNAME}" ] && \ + [ -d ${ROOT}/usr/$(get_libdir)/python*/site-packages/${PN} ]; then PYTHON_MODNAME=${PN} fi @@ -115,8 +115,8 @@ distutils_pkg_postrm() { # This is a generic optimization, you should override it if your package # installs things in another directory. This function is exported distutils_pkg_postinst() { - if [[ -z "${PYTHON_MODNAME}" &&\ - -d ${ROOT}/usr/$(get_libdir)/python*/site-packages/${PN} ]]; then + if [ -z "${PYTHON_MODNAME}" ] && \ + [ -d ${ROOT}/usr/$(get_libdir)/python*/site-packages/${PN} ]; then PYTHON_MODNAME=${PN} fi |