Unify Lzma and Xz.
This commit is contained in:
parent
9f458142b7
commit
f3c81760cb
@ -19,6 +19,12 @@ module UnpackStrategy
|
|||||||
path.magic_number.match?(/\A\]\000\000\200\000/n)
|
path.magic_number.match?(/\A\]\000\000\200\000/n)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def dependencies
|
||||||
|
@dependencies ||= [Formula["xz"]]
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
sig { override.params(unpack_dir: Pathname, basename: Pathname, verbose: T::Boolean).returns(T.untyped) }
|
sig { override.params(unpack_dir: Pathname, basename: Pathname, verbose: T::Boolean).returns(T.untyped) }
|
||||||
def extract_to_dir(unpack_dir, basename:, verbose:)
|
def extract_to_dir(unpack_dir, basename:, verbose:)
|
||||||
FileUtils.cp path, unpack_dir/basename, preserve: true
|
FileUtils.cp path, unpack_dir/basename, preserve: true
|
||||||
@ -28,9 +34,5 @@ module UnpackStrategy
|
|||||||
env: { "PATH" => PATH.new(Formula["xz"].opt_bin, ENV["PATH"]) },
|
env: { "PATH" => PATH.new(Formula["xz"].opt_bin, ENV["PATH"]) },
|
||||||
verbose: verbose
|
verbose: verbose
|
||||||
end
|
end
|
||||||
|
|
||||||
def dependencies
|
|
||||||
@dependencies ||= [Formula["xz"]]
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user