Commit 19e3f1b6 authored by Yusei Tahara's avatar Yusei Tahara

slapos/grid/SlapObject.py: If there is .shared file in software directory,...

slapos/grid/SlapObject.py: If there is .shared file in software directory, don't upload binary cache. It is the mark of shared software.
parent a37ef089
......@@ -187,7 +187,8 @@ class Software(object):
self._install_from_buildout()
# Upload to binary cache if possible and allowed
if all([self.software_root, self.url, self.software_url_hash,
self.upload_binary_cache_url, self.upload_binary_dir_url]):
self.upload_binary_cache_url, self.upload_binary_dir_url,
not os.path.exists(os.path.join(self.software_path, '.shared'))]):
blacklisted = False
for url in self.upload_to_binary_cache_url_blacklist:
if self.url.startswith(url):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment