File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -168,12 +168,15 @@ impl<'cfg> PackageRegistry<'cfg> {
168
168
self . add_source ( source, Kind :: Override ) ;
169
169
}
170
170
171
+ pub fn add_to_yanked_whitelist ( & mut self , iter : impl Iterator < Item = PackageId > ) {
172
+ self . yanked_whitelist . extend ( iter)
173
+ }
174
+
171
175
pub fn register_lock ( & mut self , id : PackageId , deps : Vec < PackageId > ) {
172
176
trace ! ( "register_lock: {}" , id) ;
173
177
for dep in deps. iter ( ) {
174
178
trace ! ( "\t -> {}" , dep) ;
175
179
}
176
- self . yanked_whitelist . insert ( id) ;
177
180
let sub_map = self
178
181
. locked
179
182
. entry ( id. source_id ( ) )
Original file line number Diff line number Diff line change @@ -471,6 +471,7 @@ fn register_previous_locks(
471
471
// package's dependencies here as that'll be covered below to poison those
472
472
// if they changed.
473
473
let mut avoid_locking = HashSet :: new ( ) ;
474
+ registry. add_to_yanked_whitelist ( resolve. iter ( ) ) ;
474
475
for node in resolve. iter ( ) {
475
476
if !keep ( & node) {
476
477
add_deps ( resolve, node, & mut avoid_locking) ;
You can’t perform that action at this time.
0 commit comments