Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1051e4cf47 |
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -2049,7 +2049,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "topgrade"
|
name = "topgrade"
|
||||||
version = "10.2.5"
|
version = "10.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ keywords = ["upgrade", "update"]
|
|||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
# license-file = "LICENSE"
|
# license-file = "LICENSE"
|
||||||
repository = "https://github.com/topgrade-rs/topgrade"
|
repository = "https://github.com/topgrade-rs/topgrade"
|
||||||
version = "10.2.5"
|
version = "10.3.0"
|
||||||
authors = ["Roey Darwish Dror <roey.ghost@gmail.com>", "Thomas Schönauer <t.schoenauer@hgs-wt.at>"]
|
authors = ["Roey Darwish Dror <roey.ghost@gmail.com>", "Thomas Schönauer <t.schoenauer@hgs-wt.at>"]
|
||||||
exclude = ["doc/screenshot.gif"]
|
exclude = ["doc/screenshot.gif"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|||||||
@@ -436,8 +436,9 @@ fn upgrade_solus(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn update_am(ctx: &ExecutionContext) -> Result<()> {
|
pub fn update_am(ctx: &ExecutionContext) -> Result<()> {
|
||||||
|
let am = require("am")?;
|
||||||
if let Some(sudo) = ctx.sudo() {
|
if let Some(sudo) = ctx.sudo() {
|
||||||
ctx.run_type().execute(sudo).args(["am", "-u"]).status_checked()?;
|
ctx.run_type().execute(sudo).arg(am).arg("-u").status_checked()?;
|
||||||
} else {
|
} else {
|
||||||
print_warning("No sudo detected. Skipping AM Step");
|
print_warning("No sudo detected. Skipping AM Step");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user