You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't understand in what cases there would be two paths that end with "PKG-INFO", but it seems like if the code is checking that one of them ends with ".egg-info/PKG-INFO", the path that gets used should be related to the result of that check. It also seems like there is a problem if both of the paths end with ".egg-info/PKG-INFO".
The text was updated successfully, but these errors were encountered:
I don't understand what this code is supposed to be doing, but it doesn't seem right.
When parsing an
SDistType::Zip
,parse_zip
is called with"PKG-INFO"
:python-pkginfo-rs/src/distribution.rs
Line 154 in dc97929
parse_zip
finds all the contained file paths that end with"PKG-INFO"
:python-pkginfo-rs/src/distribution.rs
Lines 206 to 210 in dc97929
If there is one path ending with
"PKG-INFO"
, it is used:python-pkginfo-rs/src/distribution.rs
Lines 213 to 217 in dc97929
If there are two paths ending with
"PKG-INFO"
and either of them ends with".egg-info/PKG-INFO"
, the first one is used:python-pkginfo-rs/src/distribution.rs
Lines 218 to 225 in dc97929
I don't understand in what cases there would be two paths that end with
"PKG-INFO"
, but it seems like if the code is checking that one of them ends with".egg-info/PKG-INFO"
, the path that gets used should be related to the result of that check. It also seems like there is a problem if both of the paths end with".egg-info/PKG-INFO"
.The text was updated successfully, but these errors were encountered: