Adjust these
This commit is contained in:
parent
6ed3412daf
commit
e00ce5fdbb
2 changed files with 4 additions and 2 deletions
|
|
@ -77,7 +77,8 @@ def _seed_from_offline(local: Path, offline_name: str, log_fn) -> bool:
|
|||
return local.is_file()
|
||||
local.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copy2(src, local)
|
||||
_log(f"Synced {offline_name} from offline bundle", log_fn)
|
||||
if log_fn:
|
||||
_log(f"Synced {offline_name} from offline bundle", log_fn)
|
||||
return True
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -109,7 +109,8 @@ def _seed_from_offline(engine: str, log_fn) -> bool:
|
|||
if not offline.is_file():
|
||||
return False
|
||||
shutil.copy2(offline, dest)
|
||||
_log(f"Using offline bundled {dest.name}", log_fn)
|
||||
if log_fn:
|
||||
_log(f"Using offline bundled {dest.name}", log_fn)
|
||||
return True
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue