Fix db-use.eclass to work with sys-libs/db-5.0.
authorDiego Elio Pettenò <flameeyes@gentoo.org>
Wed, 12 May 2010 11:19:29 +0000 (11:19 +0000)
committerDiego Elio Pettenò <flameeyes@gentoo.org>
Wed, 12 May 2010 11:19:29 +0000 (11:19 +0000)
eclass/db-use.eclass

index 8d81602464319b72d6490b859efbb084dff85730..263a626596c7058462103670b3625003fc778467 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/db-use.eclass,v 1.8 2009/11/24 05:24:20 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/db-use.eclass,v 1.9 2010/05/12 11:19:29 flameeyes Exp $
 # This is a common location for functions that aid the use of sys-libs/db
 #
 # Bugs: pauldv@gentoo.org
@@ -18,7 +18,11 @@ db_ver_to_slot() {
                done
                return 1
        fi
-       echo -n "${1/.0/}"
+       # 5.0.x uses 5.0 as slot value, so this replacement will break it;
+       # older sys-libs/db might have been using this but it's no longer
+       # the case, so make it work for latest rather than older stuff.
+       # echo -n "${1/.0/}"
+       echo -n "$1"
 }
 
 #Find the version that correspond to the given atom