From: | "Robin H. Johnson (robbat2)" <robbat2@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in eclass: mysql.eclass |
Date: | Mon, 09 Aug 2010 19:29:54 |
Message-Id: | 20100809192950.904C32CE15@corvid.gentoo.org |
1 | robbat2 10/08/09 19:29:50 |
2 | |
3 | Modified: mysql.eclass |
4 | Log: |
5 | Upstream changed mirror layout, and moved files to an archive site that is not mirrored. |
6 | |
7 | Revision Changes Path |
8 | 1.148 eclass/mysql.eclass |
9 | |
10 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mysql.eclass?rev=1.148&view=markup |
11 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mysql.eclass?rev=1.148&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mysql.eclass?r1=1.147&r2=1.148 |
13 | |
14 | Index: mysql.eclass |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v |
17 | retrieving revision 1.147 |
18 | retrieving revision 1.148 |
19 | diff -p -w -b -B -u -u -r1.147 -r1.148 |
20 | --- mysql.eclass 8 Aug 2010 23:31:05 -0000 1.147 |
21 | +++ mysql.eclass 9 Aug 2010 19:29:49 -0000 1.148 |
22 | @@ -1,6 +1,6 @@ |
23 | # Copyright 1999-2009 Gentoo Foundation |
24 | # Distributed under the terms of the GNU General Public License v2 |
25 | -# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.147 2010/08/08 23:31:05 robbat2 Exp $ |
26 | +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.148 2010/08/09 19:29:49 robbat2 Exp $ |
27 | |
28 | # @ECLASS: mysql.eclass |
29 | # @MAINTAINER: |
30 | @@ -162,7 +162,18 @@ if [ -z "${SERVER_URI}" ]; then |
31 | " |
32 | # The community build is on the mirrors |
33 | elif [ "${MYSQL_COMMUNITY_FEATURES}" == "1" ]; then |
34 | - SERVER_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/mysql-${MY_PV}.tar.gz" |
35 | + if [[ "${PN}" == "mysql-cluster" ]] ; then |
36 | + URI_DIR="MySQL-Cluster" |
37 | + URI_FILE="mysql-cluster-gpl" |
38 | + else |
39 | + URI_DIR="MySQL" |
40 | + URI_FILE="mysql" |
41 | + fi |
42 | + URI_A="${URI_FILE}-${MY_PV}.tar.gz" |
43 | + MIRROR_PV=$(get_version_component_range 1-2 ${PV}) |
44 | + # Recently upstream switched to an archive site, and not on mirrors |
45 | + SERVER_URI="http://downloads.mysql.com/archives/${URI_FILE}-${MIRROR_PV}/${URI_A} |
46 | + mirror://mysql/Downloads/${URI_DIR}-${PV%.*}/${URI_A}" |
47 | # The (old) enterprise source is on the primary site only |
48 | elif [ "${PN}" == "mysql" ]; then |
49 | SERVER_URI="ftp://ftp.mysql.com/pub/mysql/src/mysql-${MY_PV}.tar.gz" |