/[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.19 Revision 1.20
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.19 2007/04/15 12:18:49 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.20 2007/04/23 19:35:05 swegener Exp $
4 4
5# Author: Francesco Riosa (Retired) <vivo@gentoo.org> 5# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
6# Maintainer: Luca Longinotti <chtekk@gentoo.org> 6# Maintainer: Luca Longinotti <chtekk@gentoo.org>
7 7
8inherit multilib 8inherit multilib
56# True if at least one applicable range is found for the patch. 56# True if at least one applicable range is found for the patch.
57# 57#
58_mysql_test_patch_ver_pn() { 58_mysql_test_patch_ver_pn() {
59 local allelements=", version, package name" 59 local allelements=", version, package name"
60 # So that it fails the directory test if none of them exist 60 # So that it fails the directory test if none of them exist
61 local filesdir="/dev/null" 61 local filesdir="/dev/null"
62 for d in "${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}" \ 62 for d in "${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}" \
63 "${WORKDIR}/mysql-extras" ; do 63 "${WORKDIR}/mysql-extras" ; do
64 if [ -d "${d}" ]; then 64 if [ -d "${d}" ]; then
65 filesdir="${d}" 65 filesdir="${d}"
66 break 66 break
75 return 0 75 return 0
76 fi 76 fi
77 77
78 [[ $(( $flags & $(( 2 + 4 )) )) -gt 0 ]] \ 78 [[ $(( $flags & $(( 2 + 4 )) )) -gt 0 ]] \
79 && allelements="${allelements//", version"}" 79 && allelements="${allelements//", version"}"
80 80
81 [[ $(( $flags & $(( 8 + 16 )) )) -gt 0 ]] \ 81 [[ $(( $flags & $(( 8 + 16 )) )) -gt 0 ]] \
82 && allelements="${allelements//", package name"}" 82 && allelements="${allelements//", package name"}"
83 83
84 [[ -n "${allelements}" ]] && [[ "${flags}" -gt 0 ]] \ 84 [[ -n "${allelements}" ]] && [[ "${flags}" -gt 0 ]] \
85 && ewarn "QA notice: ${allelements} missing in ${pname} patch" 85 && ewarn "QA notice: ${allelements} missing in ${pname} patch"
86 86
87 return 1 87 return 1
88} 88}

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20