Commit c5c702f
committed
fix(install): fallback to official source when mirror checksum mismatches
Mirror servers may serve tarballs with different compression parameters
or build timestamps, resulting in SHA256 sums that differ from the
official version map. When verification fails after a mirror download,
automatically delete the mirror archive and re-download from the
original URL, then re-verify.
This avoids forcing users to manually pass --nomirror when a cached
mirror happens to have a mismatched checksum.1 parent fee7fce commit c5c702f
1 file changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
139 | 157 | | |
140 | 158 | | |
141 | 159 | | |
| |||
0 commit comments