diff options
author | Ole Markus With <olemarkus@gentoo.org> | 2011-04-16 12:19:00 +0000 |
---|---|---|
committer | Ole Markus With <olemarkus@gentoo.org> | 2011-04-16 12:19:00 +0000 |
commit | 93b2c4a05b4223ecb47d1733531a6add5e3e319c (patch) | |
tree | f9e1f96afcae0809a665bdbf9cb5f1c8e56ddc4f /eclass | |
parent | sec-policy/selinux-hal: Masked for removal in 30 days. Bug #362847 (diff) | |
download | gentoo-2-93b2c4a05b4223ecb47d1733531a6add5e3e319c.tar.gz gentoo-2-93b2c4a05b4223ecb47d1733531a6add5e3e319c.tar.bz2 gentoo-2-93b2c4a05b4223ecb47d1733531a6add5e3e319c.zip |
Added support for local channels
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/php-pear-lib-r1.eclass | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/eclass/php-pear-lib-r1.eclass b/eclass/php-pear-lib-r1.eclass index d40ffbf43fef..0f5e6130bc6a 100644 --- a/eclass/php-pear-lib-r1.eclass +++ b/eclass/php-pear-lib-r1.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-lib-r1.eclass,v 1.21 2011/03/14 08:00:10 olemarkus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-lib-r1.eclass,v 1.22 2011/04/16 12:19:00 olemarkus Exp $ # # Author: Luca Longinotti <chtekk@gentoo.org> @@ -38,8 +38,12 @@ fi # Adds required PEAR channel if necessary php-pear-lib-r1_pkg_setup() { if [[ -n $PHP_PEAR_CHANNEL ]] ; then - pear channel-discover $PHP_PEAR_CHANNEL - pear channel-update $PHP_PEAR_CHANNEL + if [[ -f $PHP_PEAR_CHANNEL ]]; then + pear channel-add $PHP_PEAR_CHANNEL + else + pear channel-discover $PHP_PEAR_CHANNEL + pear channel-update $PHP_PEAR_CHANNEL + fi fi } |