mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-19 10:27:07 +01:00
Updated for coding style
This commit is contained in:
parent
dcb665199d
commit
f7ef8e7b31
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue