diff options
author | Hans de Graaff <graaff@gentoo.org> | 2011-07-19 05:48:09 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2011-07-19 05:48:09 +0000 |
commit | a64ba96ad647fe0f4928977a83367856631ab6fb (patch) | |
tree | da7fe71487e77ea8f187def2f8318148644a0192 /eclass | |
parent | Version bump. (diff) | |
download | historical-a64ba96ad647fe0f4928977a83367856631ab6fb.tar.gz historical-a64ba96ad647fe0f4928977a83367856631ab6fb.tar.bz2 historical-a64ba96ad647fe0f4928977a83367856631ab6fb.zip |
Add QA warning for deprecated * expansion in S. Use RUBY_S and EAPI=4 instead.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ruby-ng.eclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass index 872b8bc8ea45..0d32217c118e 100644 --- a/eclass/ruby-ng.eclass +++ b/eclass/ruby-ng.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.34 2011/07/16 09:50:05 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.35 2011/07/19 05:48:09 graaff Exp $ # # @ECLASS: ruby-ng.eclass # @MAINTAINER: @@ -287,6 +287,13 @@ _ruby_invoke_environment() { # we allow the star glob to just expand to whatever directory it's # called. if [[ ${sub_S} = *"*"* ]]; then + case ${EAPI} in + 2|3) + #The old method of setting S depends on undefined package + # manager behaviour, so encourage upgrading to EAPI=4. + eqawarn "Using * expansion of S is deprecated. Use EAPI and RUBY_S instead." + ;; + esac pushd "${WORKDIR}"/all &>/dev/null sub_S=$(eval ls -d ${sub_S} 2>/dev/null) popd &>/dev/null |