From b1a14a575780227b5d08c7ca09e020d70b25dbfa Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Wed, 26 Aug 2026 15:52:51 +0200 Subject: [PATCH] tools.func: recognize bare XZ-compressed tarballs in fetch_and_deploy_from_url --- misc/tools.func | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/misc/tools.func b/misc/tools.func index bfe6cba96..c96699770 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -9334,6 +9334,11 @@ fetch_and_deploy_from_url() { if [[ "$file_desc" =~ gzip.*compressed|gzip\ compressed\ data ]]; then archive_type="tar" + elif [[ "$file_desc" =~ XZ\ compressed\ data ]]; then + # tar -xf auto-detects the compression codec from content, so a bare + # .tar.xz (which `file` reports as just "XZ compressed data" without + # mentioning tar) is extracted the same way as any other tar archive. + archive_type="tar" elif [[ "$file_desc" =~ Zip.*archive|ZIP\ archive ]]; then archive_type="zip" elif [[ "$file_desc" =~ Debian.*package|Debian\ binary\ package ]]; then