munki / macadmin-scripts

Scripts of possible interest to macOS admins
Other
2.33k stars 523 forks source link

Newer script fails to invalidate cache (invalid XML in English.dat) #73

Closed bradtchapman closed 4 years ago

bradtchapman commented 4 years ago

Using the current source code (updated 4 days ago) I saw the following:

sudo ./installinstallmacos.py
Downloading...
[...]
Invalid XML in ./content/downloads/37/41/001-04366/a6boefh8b6bee4k2x6v5lwyfjr7od2ica3/001-04366.English.dist
 #      ProductID    Version    Build   Post Date  Title
 1      001-04366    10.15.4  UNKNOWN  2020-05-04  macOS Catalina
 2      041-91758    10.13.6  UNKNOWN  2019-10-19  macOS High Sierra
 3      041-88800    10.14.4  UNKNOWN  2019-10-23  macOS Mojave
 4      061-26589    10.14.6  UNKNOWN  2019-10-14  macOS Mojave
 5      001-51042    10.15.7  UNKNOWN  2020-09-24  macOS Catalina
 6      001-36735    10.15.6  UNKNOWN  2020-08-06  macOS Catalina
 7      061-86291    10.15.3  UNKNOWN  2020-03-23  macOS Catalina
 8      041-90855    10.13.5  UNKNOWN  2019-10-23  Install macOS High Sierra Beta
 9      061-26578    10.14.5  UNKNOWN  2019-10-14  macOS Mojave
10      001-36801    10.15.6  UNKNOWN  2020-08-12  macOS Catalina

Is a newer version supposed to invalidate the cache? Or is it recommended practice to 'ignore' the cached files?

gregneagle commented 4 years ago

Just remove the content directory and let the script download fresh copies of the files.