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

Skip already extracted gems

This commit is contained in:
Nobuyoshi Nakada 2020-07-29 00:31:28 +09:00
parent ed22bf47cc
commit c904844578
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -1311,7 +1311,8 @@ extract-gems$(gnumake:yes=-nongnumake): PHONY
-e 'BEGIN {FileUtils.mkdir_p(d = ".bundle/gems")}' \
-e 'gem, ver = *$$F' \
-e 'next if !ver or /^#/=~gem' \
-e 'Gem.unpack("gems/#{gem}-#{ver}.gem", d)' \
-e 'g = "#{gem}-#{ver}"' \
-e 'File.directory?("#{d}/#{g}") or Gem.unpack("gems/#{g}.gem", d)' \
gems/bundled_gems
update-bundled_gems: PHONY