mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Updated for replace method
This commit is contained in:
parent
b6dece1928
commit
e0f8789061
1 changed files with 2 additions and 2 deletions
|
@ -53,8 +53,8 @@ class Downloader(Configs):
|
|||
filename: str = unquote(Path(path).name)
|
||||
|
||||
if url.startswith('file'):
|
||||
shutil.copy2(Path(url[7:]), self.tmp_slpkg)
|
||||
print(f'{self.byellow}Copying{self.endc}: {Path(url[7:])} -> {self.tmp_slpkg}\n')
|
||||
shutil.copy2(Path(url.replace('file:', '')), self.tmp_slpkg)
|
||||
print(f"{self.byellow}Copying{self.endc}: {Path(url.replace('file:', ''))} -> {self.tmp_slpkg}\n")
|
||||
else:
|
||||
if self.downloader in ['wget', 'wget2']:
|
||||
command: str = f'{self.downloader} {self.wget_options} --directory-prefix={self.path} "{url}"'
|
||||
|
|
Loading…
Reference in a new issue