Commit e0028f8
committed
Validate cached zip files before reuse
We've seen corrupted wheel files in Python Inspector's cache leading to
`BadZipFile` exceptions.
Add additional validation that ensures that files that will be reused
from the cache are actual zip files.
Signed-off-by: Marcel Bochtler <[email protected]>1 parent 9db72eb commit e0028f8
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
1698 | 1699 | | |
1699 | 1700 | | |
1700 | 1701 | | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
1701 | 1711 | | |
1702 | 1712 | | |
1703 | 1713 | | |
| |||
0 commit comments