Cirrus CI: Always remove download cache directory while populating

If the download cache retrieval fails, then Cirrus CI will leave the
directory around and try to repopulate the directory. So, always remove
the directory if it already exists and re-download.
This commit is contained in:
Eloston
2019-08-01 04:37:28 +00:00
parent e924b0a11d
commit bec2263fc0

View File

@@ -24,6 +24,9 @@ validate_with_source_task:
folder: chromium_download_cache
fingerprint_script: cat chromium_version.txt
populate_script:
# This directory will not exist when this is called, unless cach retrieval
# fails and leaves partially-complete files around.
- [ -e chromium_download_cache ] && rm -rf chromium_download_cache
- mkdir chromium_download_cache
- ./utils/downloads.py retrieve -i downloads.ini -c chromium_download_cache
unpack_source_script: