diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2010-08-09 19:29:49 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2010-08-09 19:29:49 +0000 |
commit | 133d73348c99b8298cb1b00e8b3a47b196bc626f (patch) | |
tree | f47d5a325efd9cd9271102f909ebdbcc49721709 /eclass | |
parent | Bump (diff) | |
download | historical-133d73348c99b8298cb1b00e8b3a47b196bc626f.tar.gz historical-133d73348c99b8298cb1b00e8b3a47b196bc626f.tar.bz2 historical-133d73348c99b8298cb1b00e8b3a47b196bc626f.zip |
Upstream changed mirror layout, and moved files to an archive site that is not mirrored.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/mysql.eclass | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass index f4cd25539f57..7332ecd2f386 100644 --- a/eclass/mysql.eclass +++ b/eclass/mysql.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.147 2010/08/08 23:31:05 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.148 2010/08/09 19:29:49 robbat2 Exp $ # @ECLASS: mysql.eclass # @MAINTAINER: @@ -162,7 +162,18 @@ if [ -z "${SERVER_URI}" ]; then " # The community build is on the mirrors elif [ "${MYSQL_COMMUNITY_FEATURES}" == "1" ]; then - SERVER_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/mysql-${MY_PV}.tar.gz" + if [[ "${PN}" == "mysql-cluster" ]] ; then + URI_DIR="MySQL-Cluster" + URI_FILE="mysql-cluster-gpl" + else + URI_DIR="MySQL" + URI_FILE="mysql" + fi + URI_A="${URI_FILE}-${MY_PV}.tar.gz" + MIRROR_PV=$(get_version_component_range 1-2 ${PV}) + # Recently upstream switched to an archive site, and not on mirrors + SERVER_URI="http://downloads.mysql.com/archives/${URI_FILE}-${MIRROR_PV}/${URI_A} + mirror://mysql/Downloads/${URI_DIR}-${PV%.*}/${URI_A}" # The (old) enterprise source is on the primary site only elif [ "${PN}" == "mysql" ]; then SERVER_URI="ftp://ftp.mysql.com/pub/mysql/src/mysql-${MY_PV}.tar.gz" |