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<()> {
if let Some(sudo) = &sudo {
for _ in 0..2 {
run_type
.execute(&sudo)
.args(&["/usr/bin/xbps-install", "-Su"])
.check_run()?;
}
run_type
.execute(&sudo)
.args(&["/usr/bin/xbps-install", "-Su", "xbps"])
.check_run()?;
run_type
.execute(&sudo)
.args(&["/usr/bin/xbps-install", "-u"])
.check_run()?;
} else {
print_warning("No sudo detected. Skipping system upgrade");
}