summaryrefslogtreecommitdiff
path: root/tool/downloader.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-05-27 20:54:20 -0700
committerJeremy Evans <code@jeremyevans.net>2019-05-27 20:55:56 -0700
commit05bc14d81a1d7f6af826a92371aeff0c3fb2a67e (patch)
treec3b7b3467f209c94bb9516e47d793c52da613e30 /tool/downloader.rb
parentf3bddc103d6a9d6e679ab35d1d3e8ab7aa2f3ae4 (diff)
Fix building with 1.8 BASERUBY
Diffstat (limited to 'tool/downloader.rb')
-rw-r--r--tool/downloader.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb
index f42f9a0ef1..6e03f3b5a3 100644
--- a/tool/downloader.rb
+++ b/tool/downloader.rb
@@ -1,4 +1,4 @@
-# Used by configure and make to download or update mirrored Ruby and GCC
+#6 Used by configure and make to download or update mirrored Ruby and GCC
# files. This will use HTTPS if possible, falling back to HTTP.
require 'fileutils'
@@ -173,7 +173,7 @@ class Downloader
if cache_save
save_cache(cache, file, name)
end
- return file.to_path
+ return file.respond_to?(:to_path) ? file.to_path : file.to_s
end
if dryrun
puts "Download #{url} into #{file}"