-
Notifications
You must be signed in to change notification settings - Fork 49
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
TAR: added zstd and lzma support #5
base: main
Are you sure you want to change the base?
TAR: added zstd and lzma support #5
Conversation
src/plugins/tar/bzip/bunzip.cpp
Outdated
@@ -103,7 +103,7 @@ CBZip::DecompressBlock(unsigned short needed) | |||
return FALSE; | |||
} | |||
BZStream->next_in = (char *)DataStart; | |||
BZStream->avail_in = (unsigned int)(DataEnd - DataStart); | |||
BZStream->avail_in = GetUnreadInputBufferSize(); |
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.
there was some issue with computing available buffer size, but now I don't remember the details...
src/plugins/tar/deb/deb.cpp
Outdated
@@ -96,15 +96,16 @@ CDEBArchive::CDEBArchive(const char* fileName, CSalamanderForOperationsAbstract* | |||
pos += sizeof(ARBlock); | |||
|
|||
// Open the fist subarchive | |||
controlArchive = new CArchive(fileName, salamander, pos, CQuadWord(SubArchiveSize, 0)); | |||
if (!controlArchive->IsOk()) | |||
CArchive *archive = new CArchive(fileName, salamander, pos, CQuadWord(SubArchiveSize, 0)); |
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.
the expected sub-archives can be in reverse order, data
first and control
last, this is a fix for such case
@@ -158,7 +158,7 @@ CPluginInterfaceAbstract* WINAPI SalamanderPluginEntry(CSalamanderPluginEntryAbs | |||
VERSINFO_VERSION_NO_PLATFORM, | |||
VERSINFO_COPYRIGHT, | |||
LoadStr(IDS_PLUGIN_DESCRIPTION), | |||
"TAR" /* neprekladat! */, "tar;tgz;taz;tbz;gz;bz;bz2;z;rpm;cpio;deb"); | |||
"TAR" /* neprekladat! */, "tar;tgz;taz;tbz;gz;bz;bz2;xz;zst;z;rpm;cpio;deb;ipk"); |
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.
.ipk
file format should be equal to .deb
ones, isn't it?
src/plugins/tar/tardll.cpp
Outdated
"%s " VERSINFO_VERSION "\n" | ||
VERSINFO_COPYRIGHT "\n\n" | ||
"bzip2 library Copyright © 1996-2010 Julian R Seward\n" | ||
"Zstandard library Copyright © 2016-2023 Facebook, Inc.\n\n" |
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.
copyright notice, as license of zstd requires
"*.rpm;*.cpio;*.deb", | ||
ConfigVersion < 5); // pri upgradech se ignoruje, az na pripad, kdy se upgraduje na verzi 4 - nutny update kvuli "*.z" a dalsim | ||
salamander->AddPanelArchiver("tgz;tbz;taz;tar;gz;bz;bz2;z;rpm;cpio;deb", FALSE, FALSE); // pri upgradech pluginu se ignoruje | ||
salamander->AddCustomUnpacker("TAR-z (Plugin)", "*.z;*.tz;*taz;*.tar.z;*_tar.z;*_tar_z;*.tar_z", upgrade); |
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.
string with all file extensions was too long, I would rather split it
Wow, support for XZ compressed Debian packages has been high on my wish list. Thanks for this! 👍 |
Is this the update from here? :) https://forum.altap.cz/viewtopic.php?p=71603 |
yes, it's exactly this one |
When compiling x64 targets, I receive the following warning:
|
Shouldn't we have one common |
forgot to check also x64 compilation log, fixed, |
this is a question if this is possible, the so far I didn't find anything useful in the documentation how to do that, but at least I'd add this to the # vcpkg
vcpkg_installed/ |
Added support for opening
.zstd
and.xz
files with TAR plugin.