Comply with new xbps behaviour (#324)

This commit is contained in:
slotThe
2020-02-17 06:18:38 +00:00
committed by GitHub
parent 1c002ffcf2
commit 0cfb97f508

View File

@@ -238,12 +238,15 @@ fn upgrade_suse(sudo: &Option<PathBuf>, run_type: RunType) -> Result<()> {
fn upgrade_void(sudo: &Option<PathBuf>, run_type: RunType) -> Result<()> { fn upgrade_void(sudo: &Option<PathBuf>, run_type: RunType) -> Result<()> {
if let Some(sudo) = &sudo { if let Some(sudo) = &sudo {
for _ in 0..2 { run_type
run_type .execute(&sudo)
.execute(&sudo) .args(&["/usr/bin/xbps-install", "-Su", "xbps"])
.args(&["/usr/bin/xbps-install", "-Su"]) .check_run()?;
.check_run()?;
} run_type
.execute(&sudo)
.args(&["/usr/bin/xbps-install", "-u"])
.check_run()?;
} else { } else {
print_warning("No sudo detected. Skipping system upgrade"); print_warning("No sudo detected. Skipping system upgrade");
} }