Added test for ponce

This commit is contained in:
Dimitris Zlatanidis 2023-02-27 23:36:01 +02:00
parent 07edc074da
commit 35e8878f37

View file

@ -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)