Skip to content

Commit

Permalink
Bypass swupd cert check when retrieving mirror url
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bwarden committed Apr 28, 2021
1 parent d0656b9 commit 89477b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion scripts/clr-network-troubleshooter.in
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 89477b3

Please sign in to comment.