Merge pull request #13386 from samford/livecheck/git-remove-tags_only_debian-logic

Git: Remove tags_only_debian logic
This commit is contained in:
Sam Ford 2022-06-07 09:47:41 -04:00 committed by GitHub
commit b75f41c527
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,13 +101,7 @@ module Homebrew
return Strategy.handle_block_return(block_return_value)
end
tags_only_debian = tags.all? { |tag| tag.start_with?("debian/") }
tags.map do |tag|
# Skip tag if it has a 'debian/' prefix and upstream does not do
# only 'debian/' prefixed tags
next if tag =~ %r{^debian/} && !tags_only_debian
if regex
# Use the first capture group (the version)
tag.scan(regex).first&.first