dev-cmd/bottle: fix --keep-old with --root-url
Don't strip the : from root_url when using --keep-old. Closes #4554.
This commit is contained in:
parent
a37d46f195
commit
c4ba06c9fc
@ -448,7 +448,8 @@ module Homebrew
|
|||||||
valid_key = %w[root_url prefix cellar rebuild sha1 sha256].include? key
|
valid_key = %w[root_url prefix cellar rebuild sha1 sha256].include? key
|
||||||
next unless valid_key
|
next unless valid_key
|
||||||
|
|
||||||
old_value = old_value_original.to_s.delete ":'\""
|
old_value = old_value_original.to_s.delete "'\""
|
||||||
|
old_value = old_value.to_s.delete ":" if key != "root_url"
|
||||||
tag = tag.to_s.delete ":"
|
tag = tag.to_s.delete ":"
|
||||||
|
|
||||||
unless tag.empty?
|
unless tag.empty?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user