-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(decompress): Match extract_dir
/extract_to
and archives
#5983
Conversation
The optimal approach is to move these files to the end, or prefix them with a In this PR, |
@niheaven The code must work without modifying any existing app manifests. Right?
Which kind of files are you referring to? Files that do not need to be unpacked?
Do you mean filtering out non-archive files and adding placeholders for them in the
Is it? I mean, it counts unpackable files here and ensures that they are correctly paired with entries of Line 60 in d693af1
which is exactly what the previous code did. |
Lines 590 to 595 in 5819b5a
The term |
The fact is that |
You're right, I misunderstood what you meant. |
Description
This PR is to fix a regression introduced in the refactoring of #5951 which broke the match between entries of
extract_dir
/extract_to
lists and files that require unpacking:Scoop/lib/decompress.ps1
Lines 22 to 26 in a5bd229
The directories specified by
extract_dir
/extract_to
fields in an app manifest are only meaningful for download files that require unpacking, if a download URL of an unpacking-free file is placed before those of archive files, the latter will not be unpacked from/to the specified paths.How Has This Been Tested?
Tested by running:
scoop install 'https://raw.githubusercontent.com/lewis-yeung/scoop-bucket/a9b9df6f918995d3c6f1323a6133b20a0d7b4c6d/bucket/oh-my-posh.json'
It works properly after the fix.
Checklist:
develop
branch.