mirror of
https://github.com/morgan9e/helium
synced 2026-04-14 00:14:20 +09:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user