summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2010-04-28 19:40:40 +0000
committerVlastimil Babka <caster@gentoo.org>2010-04-28 19:40:40 +0000
commit57e3769779f01a1d0763cc194137994b75d5aac3 (patch)
tree52ee138f85f99121a886dbed9535e3d0aa36deff /eclass
parentRename initd script to be more Gentoo like. Bump to add logrotate script than... (diff)
downloadgentoo-2-57e3769779f01a1d0763cc194137994b75d5aac3.tar.gz
gentoo-2-57e3769779f01a1d0763cc194137994b75d5aac3.tar.bz2
gentoo-2-57e3769779f01a1d0763cc194137994b75d5aac3.zip
Support version globbing when checking dependencies, bug #315123.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-utils-2.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index 785063ac102e..da5961016384 100644
--- a/eclass/java-utils-2.eclass
+++ b/eclass/java-utils-2.eclass
@@ -6,7 +6,7 @@
#
# Licensed under the GNU General Public License, v2
#
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.134 2010/04/01 22:29:28 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.135 2010/04/28 19:40:40 caster Exp $
# -----------------------------------------------------------------------------
# @eclass-begin
@@ -2679,8 +2679,9 @@ java-pkg_ensure-dep() {
local target_pkg="${2}"
local dev_error=""
+ # remove the version specification, which may include globbing (* and [123])
local stripped_pkg=$(echo "${target_pkg}" | sed \
- 's/-[0-9]*\(\.[0-9]\)*$//')
+ 's/-\([0-9*]*\(\[[0-9]*\]\)*\)*\(\.\([0-9*]*\(\[[0-9]*\]\)*\)*\)*$//')
debug-print "Matching against: ${stripped_pkg}"