From 95207ed48e52f7ecc153a4c3657ebf83333832dc Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Mon, 30 Jan 2023 03:08:36 +0100 Subject: [PATCH] xt-guess-suite-and-mirror: Add support for Ubuntu Ports APT repos Closes: #1023667, LP: #1995969 --- bin/xt-guess-suite-and-mirror | 2 +- debian/changelog | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/xt-guess-suite-and-mirror b/bin/xt-guess-suite-and-mirror index 2e961c9..d22f9db 100755 --- a/bin/xt-guess-suite-and-mirror +++ b/bin/xt-guess-suite-and-mirror @@ -143,7 +143,7 @@ all_sources_list_files: foreach my $sources_list_file (@sources_list_files) { # Skip updates, backports, volatile or security mirror. next if $source_components[2] !~ /^[a-z]+$/; - if ($source_components[1] =~ m(/debian/?$|/ubuntu/?$)) { + if ($source_components[1] =~ m(/debian/?$|/ubuntu(-ports)?/?$)) { # Seems a typical mirror. Let's use that one $mirror = $source_components[1]; diff --git a/debian/changelog b/debian/changelog index 034f51c..24be3a7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,8 @@ xen-tools (4.9.2-1) UNRELEASED; urgency=medium + xt-guess-suite-and-mirror: - Bump default ubuntu fallback release to 22.04 Jammy LTS. - Add new option --sources-list to pass a file to parse. + - Add support for Ubuntu Ports APT repos. (Closes: #1023667, + LP: #1995969) * Update upstream signing key to update its expiry date. * Depend and Build-Depend on non-(build-)essential package mount. (Closes: #1027383)