File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/cargo/ops/cargo_package Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -274,9 +274,9 @@ fn do_package<'a>(
274274 //
275275 // If they explicitly passed a registry on the CLI, we check it no matter what to verify
276276 // `package.publish`.
277- let mut local_reg = if ( deps. has_dependencies ( ) && ( opts. include_lockfile || opts. verify ) )
278- || opts. reg_or_index . is_some ( )
279- {
277+ let needs_local_reg = deps. has_dependencies ( ) && ( opts. include_lockfile || opts. verify ) ;
278+ let verify_registry_allow_list = opts. reg_or_index . is_some ( ) ;
279+ let mut local_reg = if needs_local_reg || verify_registry_allow_list {
280280 let sid = get_registry ( ws. gctx ( ) , & just_pkgs, opts. reg_or_index . clone ( ) ) ?;
281281 debug ! ( "packaging for registry {}" , sid) ;
282282 let reg_dir = ws. build_dir ( ) . join ( "package" ) . join ( "tmp-registry" ) ;
You can’t perform that action at this time.
0 commit comments