Skip to content

Commit

Permalink
Merge pull request os-autoinst#19293 from jlausuch/no-gpgcheck_fix
Browse files Browse the repository at this point in the history
Add optional -G flag in zypper when adding MU repos
  • Loading branch information
jlausuch authored May 21, 2024
2 parents fe16a30 + 19ae542 commit 18ab3cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/qam.pm
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ sub is_patch_needed {

sub add_repo_if_not_present {
my ($url, $name) = @_;
my $gpg = get_var('BUILD') =~ m/^MR:/ ? "-G" : "";
my $gpg = "";
$gpg = "-G" if (get_var('BUILD') =~ m/^MR:/ || get_var('MU_REPOS_NO_GPG_CHECK'));
my $system_repos = zypper_repos('-u');
zypper_call("--no-gpg-checks ar -f $gpg -n '$name' $url '$name'") unless grep { $_->{uri} eq $url } @$system_repos;
}
Expand Down
1 change: 1 addition & 0 deletions variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ MM_MTU | integer | 1380 | Specifies the MTU to set in SUTs of MM tests usually s
MOK_VERBOSITY | boolean | false | Enable verbosity feature of shim. Requires preinstalled `mokutil`.
MOZILLATEST |||
MOZILLA_NSS_DEVEL_REPO | string | | URL of the repository where to install the mozilla-nss packages from.
MU_REPOS_NO_GPG_CHECK | boolean | false | Use -G option in zypper when adding the repositores from OS_TEST_REPOS variable
NAME | string | | Name of the test run including distribution, build, machine name and job id.
NAMESERVER | string | | Can be used to specify a name server's IP or FQDN.
NET | boolean | false | Indicates net installation.
Expand Down

0 comments on commit 18ab3cf

Please sign in to comment.