Add logging for cache

parent 567453a0
master alain-message amarisoft boot/offline cliff-cleanup console cygwin-link-local feat/node-secrets feat/openapi feat/standalone-service feat_open_order feature/cgroups feature/format-crumbled feature/manager-cpuset fix/promise_clean_environment fix/slapos-ansible fix/verify fixuitestfrontpage hosting_daily_invoice json-api json-api-2022 json-api-slapgrid lxc master-dev message-box payzen-fixup proxy set_home slapjs slapos-override-env slapproxy-connection-parameter urlJS 1.9.2 1.9.1 1.9.0 1.8.6 1.8.5 1.8.4 1.8.3 1.8.2 1.8.1 1.8.0 1.7.13 1.7.12 1.7.11 1.7.10 1.7.9 1.7.8 1.7.7 1.7.6 1.7.5 1.7.4 1.7.3 1.7.2 1.7.1 1.7.0 1.6.19 1.6.18 1.6.17 1.6.16 1.6.15 1.6.14 1.6.13 1.6.12 1.6.11 1.6.10 1.6.9 1.6.8 1.6.7 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.12 1.5.11 1.5.10 1.5.9 1.5.8 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 1.4.28 1.4.27 1.4.26 1.4.25 1.4.24 1.4.23 1.4.22 1.4.21 1.4.20 1.4.19 1.4.17 1.4.16 1.4.15 1.4.14 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.18 1.3.17 1.3.16 1.3.15 1.3.14 1.3.13 1.3.12 1.3.11 1.3.10 1.3.9 1.3.8 1.3.7 1.3.6.3 1.3.6.2 1.3.6.1 1.3.6 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.4.1 1.2.4 1.2.3.1 1.2.3 1.2.2 1.2.1 1.2.0 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 1.0.0rc6 1.0.0rc5 1.0.0rc4 1.0.0rc3 1.0.0-rc1 0.35.1 0.34 0.33.1 0.33 0.32.3 0.32.2 0.32 0.31.2 0.31.1 0.31 0.30 0.29 0.28.9 0.28.8 0.28.7 0.28.6 0.28.5 0.28.4 0.28.3 0.28.2 0.28.1 0.28 0.27 0.26.2 0.26.1 0.26 0.25 0.24 0.23 v1.8.1 master-20180917 jquerymobile.noanimation
No related merge requests found
...@@ -92,6 +92,7 @@ class Software(object): ...@@ -92,6 +92,7 @@ class Software(object):
self.signature_certificate_list): self.signature_certificate_list):
tar = tarfile.open(tarpath) tar = tarfile.open(tarpath)
try: try:
self.logger.info("Extracting archive of cached software release...")
tar.extractall(path=self.software_root) tar.extractall(path=self.software_root)
finally: finally:
tar.close() tar.close()
...@@ -100,11 +101,13 @@ class Software(object): ...@@ -100,11 +101,13 @@ class Software(object):
if (self.software_root and self.url and self.software_url_hash \ if (self.software_root and self.url and self.software_url_hash \
and self.upload_binary_cache_url \ and self.upload_binary_cache_url \
and self.upload_binary_dir_url): and self.upload_binary_dir_url):
self.logger.info("Creating archive of software release...")
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)
finally: finally:
tar.close() tar.close()
self.logger.info("Trying to upload archive of software release...")
upload_network_cached( upload_network_cached(
self.software_root, self.software_root,
self.url, self.software_url_hash, self.url, 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