mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-05 08:46:20 +01:00
Updated for message
This commit is contained in:
parent
616ae3d973
commit
25470d25c7
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ class Downloader(Configs):
|
|||
filename: str = unquote(Path(path).name)
|
||||
|
||||
if url.startswith('file'):
|
||||
shutil.copy2(url[7:], self.tmp_slpkg)
|
||||
shutil.copy2(Path(url[7:]), self.tmp_slpkg)
|
||||
print(f'cp {Path(url[7:])} -> {self.tmp_slpkg}')
|
||||
else:
|
||||
if self.downloader in ['wget', 'wget2']:
|
||||
command: str = f'{self.downloader} {self.wget_options} --directory-prefix={self.path} "{url}"'
|
||||
|
|
Loading…
Add table
Reference in a new issue