Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2023-04-26 14:57:27 +03:00
parent dcb665199d
commit f7ef8e7b31

View file

@ -498,10 +498,13 @@ class UpdateRepository(Configs):
if not self.option_for_generate or not self.repos.ponce_repo_mirror[0].startswith('file'):
print(f"Downloading the '{self.green}{self.repos.ponce_repo_name}"
f"{self.endc}' repository, please wait...\n")
self.utils.create_directory(self.repos.repositories_path, self.repos.gnome_repo_name)
self.utils.remove_file_if_exists(self.repos.ponce_repo_path, self.repos.ponce_repo_slackbuilds)
lftp_command: str = (f'lftp {self.lftp_mirror_options} {self.repos.ponce_repo_mirror[0]} '
f'{self.repos.ponce_repo_path}')
self.utils.process(lftp_command)
gen_script: Path = Path(self.repos.ponce_repo_path, 'gen_sbo_txt.sh')
@ -510,6 +513,7 @@ class UpdateRepository(Configs):
print(f'Generating the {self.repos.ponce_repo_slackbuilds} file... ', end='', flush=True)
os.chdir(self.repos.ponce_repo_path)
gen_command: str = f'./gen_sbo_txt.sh > {self.repos.ponce_repo_slackbuilds}'
self.utils.process(gen_command)
self.delete_last_updated(self.repos.ponce_repo_name)
print('\n')
@ -529,7 +533,6 @@ class UpdateRepository(Configs):
f'{self.repos.sbo_repo_path}')
self.utils.process(lftp_command)
self.delete_last_updated(self.repos.sbo_repo_name)
self.delete_sbo_database_data()