Repository navigation
Commit 58c677e
committed
Skip expired Phars in the offline fallback
The fallback listed the cache directory itself and then asked the cache
for the newest entry; an expired one made has() return false, which
became the Composer binary. Ask the cache about each candidate, newest
first, and download when none is usable.1 parent 91a3184 commit 58c677e
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
0 commit comments