Updated for code style

This commit is contained in:
Dimitris Zlatanidis 2023-03-02 20:09:58 +02:00
parent 5b4037c6b2
commit d4aa87ccd4

View file

@ -63,7 +63,7 @@ class Downloader(Configs, Utilities):
if self.ponce_repo and 'ponce' in self.url:
# Download files from a directory.
self.output = subprocess.call(f"lftp {self.lftp_mirror_options} {self.url} {self.path}",
self.output = subprocess.call(f'lftp {self.lftp_mirror_options} {self.url} {self.path}',
shell=True, stderr=self.stderr, stdout=self.stdout)
# Create /path/name.Slackbuild
slackbuild = Path(self.path, f'{str(self.path).split("/")[-1]}.SlackBuild')
@ -72,7 +72,7 @@ class Downloader(Configs, Utilities):
os.chmod(slackbuild, 0o775)
else:
# Download binaries files and the sources.
self.output = subprocess.call(f"lftp {self.lftp_get_options} {self.url} -o {self.path}",
self.output = subprocess.call(f'lftp {self.lftp_get_options} {self.url} -o {self.path}',
shell=True, stderr=self.stderr, stdout=self.stdout)
else: