summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-06-16 18:39:36 +0100
committerSam James <sam@gentoo.org>2023-06-16 18:42:12 +0100
commita32b5379f8d17f985765fa70fe012abdff07c4c1 (patch)
tree030d68e0b527974e34e31d23cf61d281ace88c1e /eclass/ruby-fakegem.eclass
parentdev-python/pypy3: Bump to 7.3.12 (diff)
downloadgentoo-a32b5379f8d17f985765fa70fe012abdff07c4c1.tar.gz
gentoo-a32b5379f8d17f985765fa70fe012abdff07c4c1.tar.bz2
gentoo-a32b5379f8d17f985765fa70fe012abdff07c4c1.zip
ruby-fakegem.eclass: adapt to ruby-ng.eclass changes
ruby-fakegem uses an internal function (which is technically allowed, I guess, maybe, but all of this should really be shifted into ruby-utils ultimately - funnily enough negil pointed out that general class of problem yesterday. diff of bad/good:: ``` --- good/rake-13.0.6-r1/image/usr/bin/rake +++ bad/rake-13.0.6-r1-1/image/usr/bin/rake @@ -1,4 +1,4 @@ -#!/usr/bin/env ruby +#! ``` Closes: https://bugs.gentoo.org/908598 Fixes: 390ad2effe1c83a7cb25a892ad988937b53c07fe Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/ruby-fakegem.eclass')
-rw-r--r--eclass/ruby-fakegem.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
index 77d2163e06fd..db3db300c023 100644
--- a/eclass/ruby-fakegem.eclass
+++ b/eclass/ruby-fakegem.eclass
@@ -400,10 +400,10 @@ ruby_fakegem_binwrapper() {
# in the shebang, and we can actually avoid errors when
# calling the script by default.
local rubycmd=
- for implementation in $(_ruby_get_all_impls); do
+ for implementation in "${_RUBY_GET_ALL_IMPLS[@]}"; do
# ignore non-enabled implementations
use ruby_targets_${implementation} || continue
- if [ -z $rubycmd ]; then
+ if [[ -z ${rubycmd} ]]; then
# if no other implementation was set before, set it.
rubycmd="$(ruby_implementation_command ${implementation})"
else