|
|
@ -254,7 +254,7 @@ class Local(object): |
|
|
|
"Cannot delete old cache %s: %s" % (destination, e)) |
|
|
|
"Cannot delete old cache %s: %s" % (destination, e)) |
|
|
|
|
|
|
|
|
|
|
|
shutil.move(self.base_path, destination) |
|
|
|
shutil.move(self.base_path, destination) |
|
|
|
# add target_host since cache dir is hash-ed target_host |
|
|
|
# add target_host since cache dir can be hash-ed target_host |
|
|
|
host_cache_path = os.path.join(destination, "target_host") |
|
|
|
host_cache_path = os.path.join(destination, "target_host") |
|
|
|
with open(host_cache_path, 'w') as hostf: |
|
|
|
with open(host_cache_path, 'w') as hostf: |
|
|
|
print(self.target_host[0], file=hostf) |
|
|
|
print(self.target_host[0], file=hostf) |
|
|
|