fix(pkgfile): make pkgfile opt-in (#1449)
Co-authored-by: Gideon <87426140+GideonBear@users.noreply.github.com>
This commit is contained in:
@@ -710,6 +710,10 @@ pub fn run_pacstall(ctx: &ExecutionContext) -> Result<()> {
|
||||
pub fn run_pkgfile(ctx: &ExecutionContext) -> Result<()> {
|
||||
let pkgfile = require("pkgfile")?;
|
||||
|
||||
if !ctx.config().enable_pkgfile() {
|
||||
return Err(SkipStep("Pkgfile isn't enabled".to_string()).into());
|
||||
}
|
||||
|
||||
print_separator("pkgfile");
|
||||
|
||||
let sudo = ctx.require_sudo()?;
|
||||
|
||||
Reference in New Issue
Block a user