mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
unpack_strategy/cab: align method order
This simply moves the `Cab#dependencies` method above `#extract_to_dir`, to align it with the other strategies.
This commit is contained in:
parent
6918160fd9
commit
a196898ad3
@ -16,6 +16,11 @@ module UnpackStrategy
|
||||
path.magic_number.match?(/\AMSCF/n)
|
||||
end
|
||||
|
||||
sig { returns(T::Array[Formula]) }
|
||||
def dependencies
|
||||
@dependencies ||= T.let([Formula["cabextract"]], T.nilable(T::Array[Formula]))
|
||||
end
|
||||
|
||||
sig { override.params(unpack_dir: Pathname, basename: Pathname, verbose: T::Boolean).void }
|
||||
def extract_to_dir(unpack_dir, basename:, verbose:)
|
||||
system_command! "cabextract",
|
||||
@ -23,10 +28,5 @@ module UnpackStrategy
|
||||
env: { "PATH" => PATH.new(Formula["cabextract"].opt_bin, ENV.fetch("PATH")) },
|
||||
verbose:
|
||||
end
|
||||
|
||||
sig { returns(T::Array[Formula]) }
|
||||
def dependencies
|
||||
@dependencies ||= T.let([Formula["cabextract"]], T.nilable(T::Array[Formula]))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user