From cd5bd1240ea6e6fa494c130174b8dbe0a49d5f93 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 27 Mar 2023 11:01:12 +0300 Subject: [PATCH] Fixed for downloading --- slpkg/binaries/install.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/slpkg/binaries/install.py b/slpkg/binaries/install.py index 3c90ff32..f863bd9c 100644 --- a/slpkg/binaries/install.py +++ b/slpkg/binaries/install.py @@ -73,15 +73,16 @@ class Packages(Configs): pkg_urls.append(f'{mirror}{location}/{package}') self.binary_packages.append(package) - self.utils.remove_file_if_exists(self.tmp_slpkg, package) - down = Downloader(self.tmp_slpkg, pkg_urls, self.flags) - down.download() else: version: str = BinQueries(pkg).version() self.view_message.view_skipping_packages(pkg, version) - print() + + if pkg_urls: + down = Downloader(self.tmp_slpkg, pkg_urls, self.flags) + down.download() + print() def checksum(self) -> None: """ Packages checksums. """