mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-08-30 11:05:50 +00:00
upgrade_run: with dnf 5, --allowerasing has to be later
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
613324a755
commit
f8a02ef07a
@ -17,8 +17,11 @@ sub run {
|
||||
|
||||
if (script_run "dnf ${params} system-upgrade download", 6000) {
|
||||
record_soft_failure "dnf failed so retry with --allowerasing";
|
||||
$params .= " --allowerasing";
|
||||
assert_script_run "dnf ${params} system-upgrade download", 6000;
|
||||
if $relnum < 41 {
|
||||
assert_script_run "dnf ${params} --allowerasing system-upgrade download", 6000;
|
||||
}
|
||||
else {
|
||||
assert_script_run "dnf ${params} system-upgrade --allowerasing download", 6000;
|
||||
}
|
||||
|
||||
upload_logs "/var/log/dnf.log", failok => 1;
|
||||
|
Loading…
Reference in New Issue
Block a user