Comply with new xbps behaviour (#324)
This commit is contained in:
@@ -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"])
|
.args(&["/usr/bin/xbps-install", "-Su", "xbps"])
|
||||||
|
.check_run()?;
|
||||||
|
|
||||||
|
run_type
|
||||||
|
.execute(&sudo)
|
||||||
|
.args(&["/usr/bin/xbps-install", "-u"])
|
||||||
.check_run()?;
|
.check_run()?;
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
print_warning("No sudo detected. Skipping system upgrade");
|
print_warning("No sudo detected. Skipping system upgrade");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user