[rubygems/rubygems] Fix detection of gem_repo1 being updated

https://github.com/rubygems/rubygems/commit/9f9493c77c
This commit is contained in:
David Rodríguez 2024-07-09 17:37:13 +02:00 committed by git
parent e0f40dc9b0
commit c639bacd45

View File

@ -245,7 +245,7 @@ module Spec
end
def update_repo(path, build_compact_index: true)
if path == gem_repo1 && caller.first.split(" ").last == "`build_repo`"
if path == gem_repo1 && caller.first.split(" ").last != "`build_repo'"
raise "Updating gem_repo1 is unsupported -- use gem_repo2 instead"
end
return unless block_given?