/[gentoo-x86]/eclass/mysql_fx.eclass
Gentoo

Diff of /eclass/mysql_fx.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.8
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.7 2006/02/01 15:51:44 vivo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.8 2006/02/01 18:10:10 vivo Exp $
4 4
5# Author: Francesco Riosa <vivo at gentoo.org> 5# Author: Francesco Riosa <vivo at gentoo.org>
6# Maintainer: Francesco Riosa <vivo at gentoo.org> 6# Maintainer: Francesco Riosa <vivo at gentoo.org>
7 7
8# helper function, version (integer) may have section separated by dots 8# helper function, version (integer) may have section separated by dots
52# 2005-11-19 <vivo at gentoo.org> 52# 2005-11-19 <vivo at gentoo.org>
53mysql_mv_patches() { 53mysql_mv_patches() {
54 local index_file="${1:-"${WORKDIR}/mysql-extras/index.txt"}" 54 local index_file="${1:-"${WORKDIR}/mysql-extras/index.txt"}"
55 local my_ver="${2:-"${MYSQL_VERSION_ID}"}" 55 local my_ver="${2:-"${MYSQL_VERSION_ID}"}"
56 local my_test_fx=${3:-"_mysql_test_patch_easy"} 56 local my_test_fx=${3:-"_mysql_test_patch_easy"}
57 local dsc=(), ndsc=0 i 57 local dsc ndsc=0 i
58 dsc=( )
58 59
59 # values for flags are (2^x): 60 # values for flags are (2^x):
60 # 1 - one patch found 61 # 1 - one patch found
61 # 2 - at least one version range is wrong 62 # 2 - at least one version range is wrong
62 # 4 - at least one version range is _good_ 63 # 4 - at least one version range is _good_
64 while read row; do 65 while read row; do
65 case "${row}" in 66 case "${row}" in
66 @patch\ *) 67 @patch\ *)
67 ${my_test_fx} $flags "${pname}" \ 68 ${my_test_fx} $flags "${pname}" \
68 && for (( i=0 ; $i < $ndsc ; i++ )) ; do einfo "> ${dsc[$i]}" ; done 69 && for (( i=0 ; $i < $ndsc ; i++ )) ; do einfo "> ${dsc[$i]}" ; done
69 flags=1 ; ndsc=0 ; dsc=() 70 flags=1 ; ndsc=0 ; dsc=( )
70 pname=${row#"@patch "} 71 pname=${row#"@patch "}
71 ;; 72 ;;
72 @ver\ *) 73 @ver\ *)
73 if mysql_check_version_range "${row#"@ver "}" "${my_ver}" ; then 74 if mysql_check_version_range "${row#"@ver "}" "${my_ver}" ; then
74 flags=$(( $flags | 4 )) 75 flags=$(( $flags | 4 ))

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20