mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-12 01:44:21 +00:00
Don't use dnf config-manager on modular images
It's not there and can't be installed, at least at present.
This commit is contained in:
parent
b8b2234c35
commit
aaba51768e
@ -322,7 +322,13 @@ sub _repo_setup_compose {
|
|||||||
# tools see only packages from the compose under test
|
# tools see only packages from the compose under test
|
||||||
my $location = get_var("LOCATION");
|
my $location = get_var("LOCATION");
|
||||||
return unless $location;
|
return unless $location;
|
||||||
assert_script_run 'dnf config-manager --set-disabled updates-testing updates';
|
if (get_var("MODULAR")) {
|
||||||
|
# dnf config-manager not currently available on modular composes
|
||||||
|
assert_script_run "sed -i -e 's,enabled=1,enabled=0,g' /etc/yum.repos.d/fedora-modular-server-updates-testing.repo /etc/yum.repos.d/fedora-modular-server-updates.repo'";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
assert_script_run 'dnf config-manager --set-disabled updates-testing updates';
|
||||||
|
}
|
||||||
# we use script_run here as the rawhide repo file won't always exist
|
# we use script_run here as the rawhide repo file won't always exist
|
||||||
# and we don't want to bother testing or predicting its existence;
|
# and we don't want to bother testing or predicting its existence;
|
||||||
# assert_script_run doesn't buy you much with sed anyway as it'll
|
# assert_script_run doesn't buy you much with sed anyway as it'll
|
||||||
|
Loading…
Reference in New Issue
Block a user