diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-05-12 11:19:29 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-05-12 11:19:29 +0000 |
commit | 6c4f475d7bb49640781dbd7064a45445ddc5aef8 (patch) | |
tree | b139f419159f48addc7b24f0c887162311bd7851 /eclass | |
parent | Added missing fortan_pkg_setup (diff) | |
download | gentoo-2-6c4f475d7bb49640781dbd7064a45445ddc5aef8.tar.gz gentoo-2-6c4f475d7bb49640781dbd7064a45445ddc5aef8.tar.bz2 gentoo-2-6c4f475d7bb49640781dbd7064a45445ddc5aef8.zip |
Fix db-use.eclass to work with sys-libs/db-5.0.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/db-use.eclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/db-use.eclass b/eclass/db-use.eclass index 8d8160246431..263a626596c7 100644 --- a/eclass/db-use.eclass +++ b/eclass/db-use.eclass @@ -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 |