From 35e8878f37e16f4088657ebe10b93d4eaaa35180 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 27 Feb 2023 23:36:01 +0200 Subject: [PATCH] Added test for ponce --- slpkg/downloader.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/slpkg/downloader.py b/slpkg/downloader.py index 421d08a3..2b19962b 100644 --- a/slpkg/downloader.py +++ b/slpkg/downloader.py @@ -52,6 +52,16 @@ class Downloader(Configs, Utilities): if self.output != 0: raise SystemExit(self.output) + # def lftp(self): + # # TEST FOR PONCE REPOSITORY + # # https://cgit.ponce.cc/slackbuilds/plain/ + # self.output = subprocess.call(f"lftp -c 'mirror --parallel=100 {self.url} {self.path} ;exit'", shell=True, + # stderr=self.stderr, stdout=self.stdout) + # file = f'{self.path}/{self.path.split("/")[-1]}.SlackBuild' + # if os.path.isfile(file): + # os.chmod(file, 0o775) + # return True + def check_if_downloaded(self): """ Checks if the file downloaded. """ url = unquote(self.url)