Fixed firmware routine : added '--force' flag to db update

This commit is contained in:
Andrew Schott 2024-12-25 20:14:50 -06:00
parent f91fd1a19b
commit cdc1df3e3f

View file

@ -3,7 +3,7 @@ use std::path::{Path};
use color_print::{cprintln};
use clap::{command, Arg, ArgAction};
const VERSION: &'static str = "0.9";
const VERSION: &'static str = "0.9.1";
fn trim_newline(s: &mut String) {
if s.ends_with('\n') {
@ -149,7 +149,7 @@ fn update_firmware() {
cprintln!("<bold><rev>osupdater: Updating firware db</rev></bold>");
let mut cmd =
Command::new(&sudo_bin)
.arg(&fwupdmgr_bin).arg("refresh").arg("-y")
.arg(&fwupdmgr_bin).arg("refresh").arg("-y").arg("--force")
.stdout(Stdio::inherit()).stderr(Stdio::inherit())
.spawn().unwrap();
let _output = cmd.wait();