From 57f1904a73a0579ada1644d016e37e570888115c Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Mon, 15 May 2006 00:48:11 +0000 Subject: Change SRC_URI behavior slightly, to reduce load on chtekks server. --- eclass/mysql.eclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'eclass') diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass index efc74659c2a5..9f2b408fc43a 100644 --- a/eclass/mysql.eclass +++ b/eclass/mysql.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.30 2006/05/05 19:49:43 chtekk Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.31 2006/05/15 00:48:11 robbat2 Exp $ # Author: Francesco Riosa # Maintainer: Luca Longinotti @@ -52,7 +52,11 @@ MY_FIXED_PV="${MY_FIXED_PV/_rc/}" # Define correct SRC_URIs SRC_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/${P/_/-}.tar.gz" -[[ -n "${MYSQL_PATCHSET_REV}" ]] && SRC_URI="${SRC_URI} http://gentoo.longitekk.com/${PN}-patchset-${MY_FIXED_PV}-r${MYSQL_PATCHSET_REV}.tar.bz2" +if [[ -n "${MYSQL_PATCHSET_REV}" ]]; then + MYSQL_PATCHSET_FILENAME="${PN}-patchset-${MY_FIXED_PV}-r${MYSQL_PATCHSET_REV}.tar.bz2" + # we add the Gentoo mirror here as we only use primaryuri for the mysql tarball. + SRC_URI="${SRC_URI} mirror://gentoo/${MYSQL_PATCHSET_FILENAME} http://gentoo.longitekk.com/${MYSQL_PATCHSET_FILENAME}" +fi DESCRIPTION="A fast, multi-threaded, multi-user SQL database server." HOMEPAGE="http://www.mysql.com/" -- cgit v1.2.3-65-gdbad