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:
committed by
Wolfgang Bumiller
parent
57ec06621b
commit
2197ff97dc
@ -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";
|
||||
|
||||
Reference in New Issue
Block a user