From 89477b32c70f76282e8e8a62129b4bd0121becaa Mon Sep 17 00:00:00 2001 From: "Brett T. Warden" Date: Wed, 28 Apr 2021 13:27:04 -0700 Subject: [PATCH] Bypass swupd cert check when retrieving mirror url We call `swupd mirror` to get any configured mirror URL. This call won't retrieve anything useful if the certificate check fails, e.g. if Swupd_Root.pem is expired. For this lookup, add the swupd flags --nosigcheck and --nosigcheck-latest to bypass the error message and still get the configured mirror URL. --- configure.ac | 2 +- scripts/clr-network-troubleshooter.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 818af38..33d69d7 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) -AC_INIT([clr-network-troubleshooter],[12]) +AC_INIT([clr-network-troubleshooter],[13]) AM_INIT_AUTOMAKE # Checks for programs. diff --git a/scripts/clr-network-troubleshooter.in b/scripts/clr-network-troubleshooter.in index 26e6b76..c9c1f8c 100755 --- a/scripts/clr-network-troubleshooter.in +++ b/scripts/clr-network-troubleshooter.in @@ -249,7 +249,7 @@ sub check_mirror { } # Check for a configured mirror - my $swupd = `swupd mirror`; + my $swupd = `swupd mirror --nosigcheck --nosigcheck-latest`; my ($version_url) = ($swupd =~ m/Version URL\s*:\s*(\S+)/); my $test_url = $version_url;