ruby-changes:62420
From: Nobuyoshi <ko1@a...>
Date: Wed, 29 Jul 2020 20:55:02 +0900 (JST)
Subject: [ruby-changes:62420] c904844578 (master): Skip already extracted gems
https://git.ruby-lang.org/ruby.git/commit/?id=c904844578 From c904844578745859e275fbcc79264ef737457f36 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 29 Jul 2020 00:31:28 +0900 Subject: Skip already extracted gems diff --git a/common.mk b/common.mk index ed6f2b1..cd30d4f 100644 --- a/common.mk +++ b/common.mk @@ -1311,7 +1311,8 @@ extract-gems$(gnumake:yes=-nongnumake): PHONY https://github.com/ruby/ruby/blob/trunk/common.mk#L1311 -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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/