Merge pull request #1247 from efiop/master

link: don't create links for empty files
This commit is contained in:
Ruslan Kuprieiev
2018-10-21 07:41:31 +03:00
committed by GitHub
+8
View File
@@ -127,6 +127,14 @@ class RemoteLOCAL(RemoteBase):
if not os.path.exists(dname):
os.makedirs(dname)
# NOTE: just create an empty file for an empty cache
if os.path.getsize(cache) == 0:
open(path, 'w+').close()
msg = "Created empty file: {} -> {}"
self.project.logger.info(msg.format(os.path.relpath(cache),
os.path.relpath(path)))
return
i = len(self.cache_types)
while i > 0:
try: