Skip to content

Commit

Permalink
Download yanked crates when verifying the mirror (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bben01 authored Jun 6, 2024
1 parent 2024b5b commit a2e3b3a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/crates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ impl CrateEntry {
pub(crate) fn get_vers(&self) -> &str {
self.vers.as_str()
}

pub(crate) fn get_yanked(&self) -> Option<bool> {
self.yanked
}
}

/// Download one single crate file.
Expand Down
1 change: 0 additions & 1 deletion src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ pub(crate) async fn verify_mirror(
if !CRATES_403
.iter()
.any(|it| it.0 == crate_entry.get_name() && it.1 == crate_entry.get_vers())
&& !crate_entry.get_yanked().expect("should be set")
&& !file_path.exists()
{
missing_crates.push(crate_entry);
Expand Down

0 comments on commit a2e3b3a

Please sign in to comment.