public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Roman Ondráček" <mail@romanondracek.cz>
To: pve-devel@lists.proxmox.com
Cc: "Roman Ondráček" <mail@romanondracek.cz>
Subject: [PATCH pve-manager] ui: allow decompressing ISO compressed with xz
Date: Sun,  8 Mar 2026 18:58:14 +0100	[thread overview]
Message-ID: <20260308175814.639420-1-mail@romanondracek.cz> (raw)

Signed-off-by: Roman Ondráček <mail@romanondracek.cz>
---
 www/manager6/window/DownloadUrlToStorage.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/manager6/window/DownloadUrlToStorage.js b/www/manager6/window/DownloadUrlToStorage.js
index f1c4392c..36bd4ad6 100644
--- a/www/manager6/window/DownloadUrlToStorage.js
+++ b/www/manager6/window/DownloadUrlToStorage.js
@@ -83,7 +83,7 @@ Ext.define('PVE.window.DownloadUrlToStorage', {
                     let filename = data.filename || '';
                     let compression = '__default__';
                     if (view.content === 'iso') {
-                        const matches = filename.match(/^(.+)\.(gz|lzo|zst|bz2)$/i);
+                        const matches = filename.match(/^(.+)\.(gz|lzo|zst|bz2|xz)$/i);
                         if (matches) {
                             filename = matches[1];
                             compression = matches[2].toLowerCase();
@@ -237,6 +237,7 @@ Ext.define('PVE.window.DownloadUrlToStorage', {
                         ['gz', 'GZIP'],
                         ['zst', 'ZSTD'],
                         ['bz2', 'BZIP2'],
+                        ['xz', 'XZ'],
                     ],
                     cbind: {
                         hidden: (get) => get('content') !== 'iso',
-- 
2.53.0




                 reply	other threads:[~2026-03-08 17:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260308175814.639420-1-mail@romanondracek.cz \
    --to=mail@romanondracek.cz \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal