mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
Added test for ponce
This commit is contained in:
parent
07edc074da
commit
35e8878f37
1 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue