mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Merge aa07717895
into f609e1ddaf
This commit is contained in:
commit
19dc168f0e
1 changed files with 9 additions and 5 deletions
|
@ -1117,10 +1117,14 @@ impl SimpleMetadata {
|
||||||
warn!("Skipping file for {package_name}: {}", file.filename);
|
warn!("Skipping file for {package_name}: {}", file.filename);
|
||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
let version = match filename {
|
if filename.name() != package_name {
|
||||||
DistFilename::SourceDistFilename(ref inner) => &inner.version,
|
warn!(
|
||||||
DistFilename::WheelFilename(ref inner) => &inner.version,
|
"Skipping file with mismatched package name: `{}` vs. `{}`",
|
||||||
};
|
filename.name(),
|
||||||
|
package_name
|
||||||
|
);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let file = match File::try_from(file, &base) {
|
let file = match File::try_from(file, &base) {
|
||||||
Ok(file) => file,
|
Ok(file) => file,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
@ -1129,7 +1133,7 @@ impl SimpleMetadata {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
match map.entry(version.clone()) {
|
match map.entry(filename.version().clone()) {
|
||||||
std::collections::btree_map::Entry::Occupied(mut entry) => {
|
std::collections::btree_map::Entry::Occupied(mut entry) => {
|
||||||
entry.get_mut().push(filename, file);
|
entry.get_mut().push(filename, file);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue