Skip to content

Commit

Permalink
Provide add_qa_head_repo with arg:priority
Browse files Browse the repository at this point in the history
At times it might be needed to change the priority of the QA repo,
as there might be - for instance - the need of letting zypper install
first from QA or from another repository. This is exactly the case for
blktests and fio package which is there in QA repo but also in SLE15
  • Loading branch information
Sebastian Chlad committed Apr 2, 2020
1 parent 5dd1726 commit 0201040
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/repo_tools.pm
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ This repository *is* mandatory.
=cut
sub add_qa_head_repo {
zypper_ar(get_required_var('QA_HEAD_REPO'), name => 'qa-head', no_gpg_check => is_sle("<12") ? 0 : 1);
my (%args) = @_;
my $priority = $args{priority} // 0;

zypper_ar(get_required_var('QA_HEAD_REPO'), name => 'qa-head', priority => $priority, no_gpg_check => is_sle("<12") ? 0 : 1);
}

=head2 add_qa_web_repo
Expand Down

0 comments on commit 0201040

Please sign in to comment.