Pacstall (fix #764) (#769)

This commit is contained in:
Roey Darwish Dror
2021-10-25 21:33:58 +03:00
committed by GitHub
parent b6c468c6fb
commit 9023942a85
3 changed files with 11 additions and 0 deletions

View File

@@ -411,6 +411,15 @@ fn upgrade_solus(ctx: &ExecutionContext) -> Result<()> {
Ok(())
}
pub fn run_pacstall(ctx: &ExecutionContext) -> Result<()> {
let pacstall = require("pacstall")?;
ctx.run_type()
.execute(pacstall)
.arg("-Up")
.args(ctx.config().yay_arguments().split_whitespace())
.check_run()
}
fn upgrade_clearlinux(ctx: &ExecutionContext) -> Result<()> {
if let Some(sudo) = &ctx.sudo() {
ctx.run_type()