mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Updated for download only
This commit is contained in:
parent
fa7d3e574d
commit
a1ce3ecb5d
1 changed files with 2 additions and 3 deletions
|
@ -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)}")
|
||||
|
||||
|
|
Loading…
Reference in a new issue