mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Old gem file had not been removed
* common.mk (update-gems): `old.delete("gems/#{gem}")` always returns nil because when really downloading new gem, the filename is not in `old`. the real intention of this condition might be checking `old` is empty or not. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ec3a906bb6
commit
42fe7ceb50
1 changed files with 1 additions and 1 deletions
|
@ -1134,7 +1134,7 @@ update-gems: PHONY
|
|||
-e 'old = Dir.glob("gems/#{gem}-*.gem")' \
|
||||
-e 'gem = "#{gem}-#{ver}.gem"' \
|
||||
-e 'Downloader::RubyGems.download(gem, "gems", nil) and' \
|
||||
-e 'old.delete("gems/#{gem}") and' \
|
||||
-e '(old.delete("gems/#{gem}"); !old.empty?) and' \
|
||||
-e 'File.unlink(*old) and' \
|
||||
-e 'FileUtils.rm_rf(old.map{'"|n|"'n.chomp(".gem")})' \
|
||||
gems/bundled_gems
|
||||
|
|
Loading…
Add table
Reference in a new issue