Fixed firmware routine : added flag to db update
This commit is contained in:
parent
f91fd1a19b
commit
78eaf0d719
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ use std::path::{Path};
|
||||||
use color_print::{cprintln};
|
use color_print::{cprintln};
|
||||||
use clap::{command, Arg, ArgAction};
|
use clap::{command, Arg, ArgAction};
|
||||||
|
|
||||||
const VERSION: &'static str = "0.9";
|
const VERSION: &'static str = "0.9.1";
|
||||||
|
|
||||||
fn trim_newline(s: &mut String) {
|
fn trim_newline(s: &mut String) {
|
||||||
if s.ends_with('\n') {
|
if s.ends_with('\n') {
|
||||||
|
@ -149,7 +149,7 @@ fn update_firmware() {
|
||||||
cprintln!("<bold><rev>osupdater: Updating firware db</rev></bold>");
|
cprintln!("<bold><rev>osupdater: Updating firware db</rev></bold>");
|
||||||
let mut cmd =
|
let mut cmd =
|
||||||
Command::new(&sudo_bin)
|
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())
|
.stdout(Stdio::inherit()).stderr(Stdio::inherit())
|
||||||
.spawn().unwrap();
|
.spawn().unwrap();
|
||||||
let _output = cmd.wait();
|
let _output = cmd.wait();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue