Add logging for cache

parent 567453a0
...@@ -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