fix #4849: download-url: allow download and decompression of compressed ISOs

adds information for how to decompress isos.

generates the compressor regex from a list of comression formats (to
avoid redundancy)
extends the download_url wtih the functionality to handley compression
for images

Signed-off-by: Philipp Hufnagl <p.hufnagl@proxmox.com>
This commit is contained in:
Philipp Hufnagl
2023-08-14 16:42:17 +02:00
committed by Wolfgang Bumiller
parent 57ec06621b
commit 2197ff97dc
3 changed files with 21 additions and 2 deletions

View File

@ -19,7 +19,8 @@ use JSON;
use base qw(PVE::SectionConfig);
use constant COMPRESSOR_RE => 'gz|lzo|zst';
use constant KNOWN_COMPRESSION_FORMATS => ( 'gz', 'lzo', 'zst');
use constant COMPRESSOR_RE => join( '|', KNOWN_COMPRESSION_FORMATS);
use constant LOG_EXT => ".log";
use constant NOTES_EXT => ".notes";