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 | e4b99205c202e169f986ce4fad3b2bdece9f31f6 (patch) | |
tree | 979f7c6f4f07e0586fb9621e8a3853614c8388f4 /eclass/mysql.eclass | |
parent | Bump (diff) | |
download | gentoo-2-e4b99205c202e169f986ce4fad3b2bdece9f31f6.tar.gz gentoo-2-e4b99205c202e169f986ce4fad3b2bdece9f31f6.tar.bz2 gentoo-2-e4b99205c202e169f986ce4fad3b2bdece9f31f6.zip |
Upstream changed mirror layout, and moved files to an archive site that is not mirrored.
Diffstat (limited to 'eclass/mysql.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" |