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 @@ -287,9 +287,9 @@ fn do_package<'a>(
287287 //
288288 // If they explicitly passed a registry on the CLI, we check it no matter what to verify
289289 // `package.publish`.
290- let mut local_reg = if ( deps. has_dependencies ( ) && ( opts. include_lockfile || opts. verify ) )
291- || opts. reg_or_index . is_some ( )
292- {
290+ let needs_local_reg = deps. has_dependencies ( ) && ( opts. include_lockfile || opts. verify ) ;
291+ let verify_registry_allow_list = opts. reg_or_index . is_some ( ) ;
292+ let mut local_reg = if needs_local_reg || verify_registry_allow_list {
293293 let sid = get_registry ( ws. gctx ( ) , & just_pkgs, opts. reg_or_index . clone ( ) ) ?;
294294 debug ! ( "packaging for registry {}" , sid) ;
295295 let reg_dir = ws. build_dir ( ) . join ( "package" ) . join ( "tmp-registry" ) ;
You can’t perform that action at this time.
0 commit comments