We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d732ae4 commit cf08f29Copy full SHA for cf08f29
1 file changed
crates/lib/src/sync.rs
@@ -33,7 +33,7 @@ pub async fn ensure(config: &Config, conn: &mut Connection) -> Result<(), Box<dy
33
34
pub async fn update(config: &Config, conn: &mut Connection) -> Result<(), Box<dyn Error>> {
35
if std::env::var("PKGX_PANTRY_DIR").is_ok() {
36
- return Err("PKGX_PANTRY_DIR is set, refusing to update pantry")?;
+ return ensure(config, conn).await;
37
}
38
replace(config, conn).await
39
0 commit comments