/[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.8 Revision 1.9
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.8 2006/02/01 18:10:10 vivo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.9 2006/03/10 11:41:39 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
112 112
113# another one inherited from versionator.eclass (version_sort) 113# another one inherited from versionator.eclass (version_sort)
114# THERE IS A COPY OF THIS ONE IN ESELECT-MYSQL, keep the two synced 114# THERE IS A COPY OF THIS ONE IN ESELECT-MYSQL, keep the two synced
115mysql_make_file_list() { 115mysql_make_file_list() {
116 local items= left=0 116 local items= left=0
117 items=$( ls -d ${1}-[[:digit:]][[:digit:]][[:digit:]] ) 117 items=$( ls -d ${1}-[[:digit:]][[:digit:]][[:digit:]] 2>/dev/null )
118 118
119 while [[ ${left} -lt ${#items[@]} ]] ; do 119 while [[ ${left} -lt ${#items[@]} ]] ; do
120 local lowest_idx=${left} 120 local lowest_idx=${left}
121 local idx=$(( ${lowest_idx} + 1 )) 121 local idx=$(( ${lowest_idx} + 1 ))
122 while [[ ${idx} -lt ${#items[@]} ]] ; do 122 while [[ ${idx} -lt ${#items[@]} ]] ; do

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

  ViewVC Help
Powered by ViewVC 1.1.20