summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-05-12 11:19:29 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-05-12 11:19:29 +0000
commit3c3ff067d1347d4d206a68b4b561023715b1c38d (patch)
tree00d7be6f0cfdbef8bbe045586bbb383d76318339 /eclass/db-use.eclass
parentAdded missing fortan_pkg_setup (diff)
downloadhistorical-3c3ff067d1347d4d206a68b4b561023715b1c38d.tar.gz
historical-3c3ff067d1347d4d206a68b4b561023715b1c38d.tar.bz2
historical-3c3ff067d1347d4d206a68b4b561023715b1c38d.zip
Fix db-use.eclass to work with sys-libs/db-5.0.
Diffstat (limited to 'eclass/db-use.eclass')
-rw-r--r--eclass/db-use.eclass8
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