Updated for download only

This commit is contained in:
Dimitris Zlatanidis 2023-05-06 22:15:09 +03:00
parent fa7d3e574d
commit a1ce3ecb5d

View file

@ -69,9 +69,8 @@ class Download(Configs):
urls += sources
repo_path_package: Path = Path(sbo_repo[self.repository], location, pkg)
if Path(download_path, pkg).is_dir():
self.utils.remove_folder_if_exists(Path(download_path, pkg))
shutil.copytree(repo_path_package, Path(download_path, pkg))
if not Path(download_path, pkg).is_dir():
shutil.copytree(repo_path_package, Path(download_path, pkg))
print(f"{self.byellow}Copying{self.endc}: {repo_path_package} -> {Path(download_path, pkg)}")