Merge pull request #475 from darko-poljak/target_host_cache
Add target_host file with original host to cache since cache dir is hash
This commit is contained in:
commit
b08ea652a3
1 changed files with 4 additions and 0 deletions
|
@ -254,6 +254,10 @@ 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 can be hash-ed target_host
|
||||||
|
host_cache_path = os.path.join(destination, "target_host")
|
||||||
|
with open(host_cache_path, 'w') as hostf:
|
||||||
|
print(self.target_host[0], file=hostf)
|
||||||
|
|
||||||
def _create_messages(self):
|
def _create_messages(self):
|
||||||
"""Create empty messages"""
|
"""Create empty messages"""
|
||||||
|
|
Loading…
Reference in a new issue