Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/bockbuild.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo Shields <joshield@microsoft.com>2019-06-14 22:07:59 +0300
committerJo Shields <joshield@microsoft.com>2019-06-14 22:07:59 +0300
commit2349b61bb2d75328eca41eb216eb928dafbc4a4f (patch)
tree4bffae0a62896fd57b151e4da36b10b9e8daa130
parentea42169ff7faf669b57241b43f3cedcb42e2f7c1 (diff)
Cached binary-not-source in a versioned directory
Maybe this fixes https://github.com/mono/mono/issues/14957
-rw-r--r--bockbuild/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bockbuild/package.py b/bockbuild/package.py
index 84a66b1..330eb55 100644
--- a/bockbuild/package.py
+++ b/bockbuild/package.py
@@ -337,8 +337,8 @@ class Package:
return clean_archive
- def get_download_dest(url):
- return os.path.join(source_cache_dir, os.path.basename(url))
+ def get_download_dest(url,version):
+ return os.path.join(source_cache_dir, version, os.path.basename(url))
def get_git_cache_path():
if self.organization is None:
@@ -370,7 +370,7 @@ class Package:
# raise Exception ('HTTP downloads are no longer allowed: %s', source)
if source.startswith(('http://', 'https://', 'ftp://')):
- cache = get_download_dest(source)
+ cache = get_download_dest(source,self.version)
if self.profile.cache_host is not None:
cached_source = os.path.join(
self.profile.cache_host, os.path.basename(source))