brew/Library/Homebrew/extend/os/linux/formula_cellar_checks.rb

11 lines
288 B
Ruby
Raw Normal View History

2020-10-10 14:16:11 +02:00
# typed: strict
# frozen_string_literal: true
module FormulaCellarChecks
2020-10-28 18:49:10 +11:00
extend T::Sig
sig { params(filename: Pathname).returns(T::Boolean) }
def valid_library_extension?(filename)
generic_valid_library_extension?(filename) || filename.basename.to_s.include?(".so.")
end
end