linux: Ignore "--yes" for rpm-ostree upgrade (#849)

Previously when performing the "system" upgrade step, rpm-ostree would
be passed a "--yes" argument when it was configured in topgrade.
However, this is not an option available for rpm-ostree, so it would
cause an error and abort execution of the updates.
This commit is contained in:
Funky185540
2022-02-01 11:46:27 +01:00
committed by GitHub
parent c9b846bd6b
commit d15bc32614

View File

@@ -164,10 +164,6 @@ fn upgrade_redhat(ctx: &ExecutionContext) -> Result<()> {
if ctx.config().rpm_ostree() {
let mut command = ctx.run_type().execute(ostree);
command.arg("upgrade");
if ctx.config().yes(Step::System) {
command.arg("-y");
}
return command.check_run();
}
};