Skip to content
Snippets Groups Projects
Commit 7261d424 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[bootstrap] Accomodate the case in which miniconda.cached/pkgs/urls.txt does yet exist

parent 07595442
Branches
Tags
No related merge requests found
Pipeline #26221 passed
......@@ -166,6 +166,8 @@ def merge_conda_cache(cache, prefix, name):
logger.info('Merging urls.txt files from cache...')
urls = []
cached_pkgs_urls_txt = os.path.join(cached_pkgs_dir, 'urls.txt')
logger.info('touch %s', cached_pkgs_urls_txt)
touch(cached_pkgs_urls_txt) #sometimes it does not exist yet
with open(pkgs_urls_txt, 'rb') as f1, \
open(cached_pkgs_urls_txt, 'rb') as f2:
data = set(f1.readlines() + f2.readlines())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment