1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

UnpackedInstaller on rbinstall.rb is inherited from Gem::Installer.

It also needs to explicitly convert from String to Gem::Package
  with initialization.
This commit is contained in:
Hiroshi SHIBATA 2020-02-01 11:31:46 +09:00
parent f8df531bbf
commit 563f177aa4
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -724,7 +724,8 @@ module RbInstall
end
def initialize(spec, *options)
super(spec.loaded_from, *options)
package = Gem::Package.new(spec.loaded_from)
super(package, *options)
@package.extend(DirPackage).spec = spec
end