[rubygems/rubygems] Fix detection of gem_repo1
being updated
https://github.com/rubygems/rubygems/commit/9f9493c77c
This commit is contained in:
parent
e0f40dc9b0
commit
c639bacd45
@ -245,7 +245,7 @@ module Spec
|
|||||||
end
|
end
|
||||||
|
|
||||||
def update_repo(path, build_compact_index: true)
|
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"
|
raise "Updating gem_repo1 is unsupported -- use gem_repo2 instead"
|
||||||
end
|
end
|
||||||
return unless block_given?
|
return unless block_given?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user