pkg build fix autodisable package
This commit is contained in:
@ -53,9 +53,9 @@ pub fn build(repo: &String, pkgname: &String) {
|
||||
hook(&pkg_dir);
|
||||
|
||||
if full_env.get("disable").is_some() {
|
||||
link(repo, pkgname);
|
||||
} else {
|
||||
let _ = fs::File::create(pkg_dir.join("disabled"));
|
||||
} else {
|
||||
link(repo, pkgname);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user