summaryrefslogtreecommitdiff
path: root/src/install.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/install.rs')
-rw-r--r--src/install.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/install.rs b/src/install.rs
index a0cf8f2..160121c 100644
--- a/src/install.rs
+++ b/src/install.rs
@@ -499,8 +499,6 @@ pub fn find_package_with_repo(pkg_name: &str) -> Option<(PathBuf, String)> {
None
}
-
-
pub fn resolve_package_name(pkg_name: &str) -> Option<String> {
let path = find_package_file(pkg_name)?;
let content = fs::read_to_string(path).ok()?;
@@ -813,6 +811,8 @@ pub fn install_package_with_result(pkg_name: &str, cfg: &config::Config) -> Resu
}
}
+ crate::delete::check_critical_install(pkg_name, &db)?;
+
let effective_filename = resolve_filename(&pkg, binary);
debug!("Effective filename: {}", effective_filename);