pages.rs: format with rustfmt
Signed-off-by: Peppe289 <gsperanza204@gmail.com>
This commit is contained in:
parent
280ef70cc8
commit
73d16a5f7b
|
@ -67,9 +67,9 @@ fn create_fixes_section() -> gtk::Box {
|
||||||
std::thread::spawn(move || {
|
std::thread::spawn(move || {
|
||||||
// check if you have orphans packages.
|
// check if you have orphans packages.
|
||||||
let status = std::process::Command::new("pacman")
|
let status = std::process::Command::new("pacman")
|
||||||
.arg("-Qtdq")
|
.arg("-Qtdq")
|
||||||
.status()
|
.status()
|
||||||
.expect("Found orphans packages");
|
.expect("Found orphans packages");
|
||||||
|
|
||||||
if status.success() {
|
if status.success() {
|
||||||
let _ = utils::run_cmd_terminal(String::from("pacman -Rns $(pacman -Qtdq)"), true);
|
let _ = utils::run_cmd_terminal(String::from("pacman -Rns $(pacman -Qtdq)"), true);
|
||||||
|
|
Loading…
Reference in New Issue