File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -371,6 +371,10 @@ fetch_tarball() {
371
371
local checksum
372
372
local extracted_dir
373
373
374
+ if is_ruby_package " $1 " && [ -n " $RUBY_BUILD_TARBALL_OVERRIDE " ]; then
375
+ package_url=" $RUBY_BUILD_TARBALL_OVERRIDE "
376
+ fi
377
+
374
378
if [ " $package_url " != " ${package_url/ \# } " ]; then
375
379
checksum=" ${package_url#*# } "
376
380
package_url=" ${package_url%%#* } "
@@ -1203,14 +1207,23 @@ isolated_gem_install() {
1203
1207
1204
1208
apply_ruby_patch () {
1205
1209
local patchfile
1206
- case " $1 " in
1207
- ruby-* | jruby-* | rubinius-* | truffleruby-* )
1210
+ if is_ruby_package " $1 " ; then
1208
1211
patchfile=" $( mktemp " ${TMP} /ruby-patch.XXXXXX" ) "
1209
1212
cat " ${2:- -} " > " $patchfile "
1210
1213
1211
1214
local striplevel=0
1212
1215
grep -q ' ^--- a/' " $patchfile " && striplevel=1
1213
1216
patch -p$striplevel --force -i " $patchfile "
1217
+ fi
1218
+ }
1219
+
1220
+ is_ruby_package () {
1221
+ case " $1 " in
1222
+ ruby-* | jruby-* | rubinius-* | truffleruby[+-]* | mruby-* | picoruby-* )
1223
+ return 0
1224
+ ;;
1225
+ * )
1226
+ return 1
1214
1227
;;
1215
1228
esac
1216
1229
}
You can’t perform that action at this time.
0 commit comments