mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 10:33:49 +00:00
Use file stem when parsing cached wheel names (#7773)
## Summary I noticed that we were including `http` (the file extension) in the platform tags when reading from the cache:  Probably harmless, but wrong.
This commit is contained in:
parent
884b5a3c80
commit
c415251aa2
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ impl CachedWheel {
|
|||
let path = path.as_ref();
|
||||
|
||||
// Determine the wheel filename.
|
||||
let filename = path.file_name()?.to_str()?;
|
||||
let filename = path.file_stem()?.to_str()?;
|
||||
let filename = WheelFilename::from_stem(filename).ok()?;
|
||||
|
||||
// Read the pointer.
|
||||
|
@ -121,7 +121,7 @@ impl CachedWheel {
|
|||
let path = path.as_ref();
|
||||
|
||||
// Determine the wheel filename.
|
||||
let filename = path.file_name()?.to_str()?;
|
||||
let filename = path.file_stem()?.to_str()?;
|
||||
let filename = WheelFilename::from_stem(filename).ok()?;
|
||||
|
||||
// Read the pointer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue