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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user