Commit 92f6710a authored by Yingjie Xu's avatar Yingjie Xu

Do nothing if binary cache if not well configured.

parent 6b18ffec
...@@ -97,6 +97,9 @@ class Software(object): ...@@ -97,6 +97,9 @@ class Software(object):
tar.close() tar.close()
else: else:
self._install_from_buildout() self._install_from_buildout()
if (self.software_root and self.url and self.software_url_hash \
and self.upload_binary_cache_url \
and self.upload_binary_dir_url):
tar = tarfile.open(tarpath, "w:gz") tar = tarfile.open(tarpath, "w:gz")
try: try:
tar.add(self.software_path, arcname=self.software_url_hash) tar.add(self.software_path, arcname=self.software_url_hash)
......
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