1 |
robbat2 08/03/10 02:47:21 |
2 |
|
3 |
Modified: mysql.eclass |
4 |
Log: |
5 |
Trim the trailing letters used by upstream for respun tarballs. |
6 |
|
7 |
Revision Changes Path |
8 |
1.88 eclass/mysql.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?rev=1.88&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?rev=1.88&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?r1=1.87&r2=1.88 |
13 |
|
14 |
Index: mysql.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v |
17 |
retrieving revision 1.87 |
18 |
retrieving revision 1.88 |
19 |
diff -p -w -b -B -u -u -r1.87 -r1.88 |
20 |
--- mysql.eclass 9 Mar 2008 21:19:14 -0000 1.87 |
21 |
+++ mysql.eclass 10 Mar 2008 02:47:20 -0000 1.88 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2007 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.87 2008/03/09 21:19:14 robbat2 Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.88 2008/03/10 02:47:20 robbat2 Exp $ |
27 |
|
28 |
# Author: Francesco Riosa (Retired) <vivo@g.o> |
29 |
# Maintainer: MySQL Team <mysql-bugs@g.o> |
30 |
@@ -36,9 +36,11 @@ fi |
31 |
# This is an important part, because many of the choices the MySQL ebuild will do |
32 |
# depend on this variable. |
33 |
# In particular, the code below transforms a $PVR like "5.0.18-r3" in "5001803" |
34 |
+# We also strip off upstream's trailing letter that they use to respin tarballs |
35 |
|
36 |
MYSQL_VERSION_ID="" |
37 |
-tpv=( ${PV//[-._]/ } ) ; tpv[3]="${PVR:${#PV}}" ; tpv[3]="${tpv[3]##*-r}" |
38 |
+tpv="${PV%[a-z]}" |
39 |
+tpv=( ${tpv//[-._]/ } ) ; tpv[3]="${PVR:${#PV}}" ; tpv[3]="${tpv[3]##*-r}" |
40 |
for vatom in 0 1 2 3 ; do |
41 |
# pad to length 2 |
42 |
tpv[${vatom}]="00${tpv[${vatom}]}" |
43 |
|
44 |
|
45 |
|
46 |
-- |
47 |
gentoo-commits@l.g.o mailing list |