Skip to content

Commit

Permalink
devel: Replace unzip with p7zip
Browse files Browse the repository at this point in the history
The osx-arm64 build of unzip provided by conda cannot extract the info
file from the conda package. The error is apparent when running with
unzip directly:

    skipping: info-nextstrain-base-20250203T230808Z-h60d57d3_0.tar.zst  need PK compat. v4.5 (can do v2.1)

p7zip does not have this issue.
  • Loading branch information
victorlin committed Feb 4, 2025
1 parent d4bb5e7 commit 548e882
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion devel/extract-pkg-info
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ main() {
package="$1"
file="$2"

unzip -p "$package" "info-$(basename "$package" .conda).tar.zst" \
7z e -so "$package" "info-$(basename "$package" .conda).tar.zst" \
| unzstd --stdout \
| tar --extract --to-stdout "info/$file"
}
Expand Down
2 changes: 1 addition & 1 deletion devel/setup
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ create() {
yq

# for extracting files from .conda packages
p7zip
tar
unzip
zstd

# to get gnu `date` on macOS
Expand Down

0 comments on commit 548e882

Please sign in to comment.