From 6733ab9278674fb1cb820514c6a18695087e7bdf Mon Sep 17 00:00:00 2001 From: Marek Habersack Date: Mon, 29 Jan 2024 10:10:43 +0000 Subject: [PATCH] [xaprepare] Add support for newer SparkyLinux (#8684) SparkyLinux is a Debian-based distribution that's 100% compatible with its upstream, but it is rebranded and follows its own versioning scheme. Add support for SparkLinux detection so that `xaprepare` can properly detect the required packages. TODO: the whole Debian detection code has to be refreshed at some point. --- .../xaprepare/ConfigAndData/Dependencies/Linux.Debian.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-tools/xaprepare/xaprepare/ConfigAndData/Dependencies/Linux.Debian.cs b/build-tools/xaprepare/xaprepare/ConfigAndData/Dependencies/Linux.Debian.cs index a20b2b3504e..382070c78b4 100644 --- a/build-tools/xaprepare/xaprepare/ConfigAndData/Dependencies/Linux.Debian.cs +++ b/build-tools/xaprepare/xaprepare/ConfigAndData/Dependencies/Linux.Debian.cs @@ -53,7 +53,7 @@ protected override void InitializeDependencies () if (DebianRelease.Major >= 10 || (IsTesting && String.Compare ("buster", CodeName, StringComparison.OrdinalIgnoreCase) == 0)) { if (Context.IsRunningOnHostedAzureAgent) Dependencies.AddRange (packages10AndNewerBuildBots); - if (DebianRelease.Major >= 13) { + if (DebianRelease.Major >= 13 || (String.Compare ("SparkyLinux", Name, StringComparison.OrdinalIgnoreCase) == 0 && DebianRelease.Major >= 7)) { Dependencies.AddRange (packagesTrixieAndLater); } else { Dependencies.AddRange (packagesPreTrixie);