Projects
home:pandora:RobinOS23
texinfo
_service:download_src_package:texinfo-6.8-add-z...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:texinfo-6.8-add-zst-support-in-install-info.patch of Package texinfo
--- a/info/filesys.c +++ b/info/filesys.c @@ -67,6 +67,7 @@ static COMPRESSION_ALIST compress_suffixes[] = { { ".z", "gunzip" }, { ".lzma", "unlzma" }, { ".Z", "uncompress" }, + { ".zst", "unzstd --rm -q" }, { ".Y", "unyabba" }, #ifdef __MSDOS__ { "gz", "gunzip" }, --- a/install-info/install-info.c +++ b/install-info/install-info.c @@ -388,6 +388,11 @@ strip_info_suffix (char *fname) len -= 4; ret[len] = 0; } + else if (len > 4 && FILENAME_CMP (ret + len - 4, ".zst") == 0) + { + len -= 4; + ret[len] = 0; + } else if (len > 3 && FILENAME_CMP (ret + len - 3, ".lz") == 0) { len -= 3; @@ -673,6 +678,12 @@ open_possibly_compressed_file (char *filename, if (!f) { free (*opened_filename); + *opened_filename = concat (filename, ".zst", ""); + f = fopen (*opened_filename, FOPEN_RBIN); + } + if (!f) + { + free (*opened_filename); *opened_filename = concat (filename, ".lz", ""); f = fopen (*opened_filename, FOPEN_RBIN); }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2