-
Notifications
You must be signed in to change notification settings - Fork 5
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
support squashfs* properly #6
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -226,6 +226,14 @@ class functions do. | |
], | ||
"GZIP", ["tar.gz"], {"tar"}, | ||
], | ||
"squashfs_zstd": [ | ||
"_sqfs", "mksquashfs", | ||
[ | ||
"%(basedir)s/%(source)s", "%(filename)s", "-comp", "zstd", | ||
"-Xcompression-level", "19", "-b", "1M", "-no-recovery", "-noappend", "other_options" | ||
], | ||
"SQUASHFS", ["squashfs", "sfs"], {"mksquashfs"}, | ||
], | ||
"squashfs_xz": [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've merged a different PR that added this plus pzstd |
||
"_sqfs", "mksquashfs", | ||
[ | ||
|
@@ -376,8 +384,8 @@ class functions do. | |
"squashfs": [ | ||
"_common", "unsquashfs", | ||
[ | ||
"other_options", "-d", "%(destination)s", | ||
"%(basedir)s/%(source)s" | ||
"other_options", "-f", "-d", "%(destination)s", | ||
"%(source)s" | ||
], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't like this change. You dropped %(basedir)s/ which is common to all, plus you can use the other_options variable to add the -f flag for your use case without hard coding it.. This change forces the -f flag to everyone. |
||
"SQUASHFS", ["squashfs", "sfs"], {"unsquashfs"}, | ||
], | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rick, why did you limit the next block to only to squashfs_xz?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only the squashfs_xz definition contains "-Xbcj %(arch)s"
pyDeComp/DeComp/definitions.py
Lines 199 to 230 in 0e53690
For other compression types, raises: