mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +01:00
Fixed remove the file
This commit is contained in:
parent
a0d8dcf7ca
commit
0c920cb131
1 changed files with 6 additions and 1 deletions
|
@ -48,7 +48,12 @@ class UpdateRepository(Configs, Utilities):
|
||||||
subprocess.call(f'lftp {self.lftp_mirror_options} {self.ponce_repo_url} {self.ponce_repo_path}',
|
subprocess.call(f'lftp {self.lftp_mirror_options} {self.ponce_repo_url} {self.ponce_repo_path}',
|
||||||
shell=True)
|
shell=True)
|
||||||
|
|
||||||
# Generating the SLACKBUILDS.TXT file.
|
# Remove the file before generating the new one.
|
||||||
|
sbo_file_txt = Path(self.ponce_repo_path, self.ponce_txt)
|
||||||
|
if sbo_file_txt.is_file():
|
||||||
|
sbo_file_txt.unlink()
|
||||||
|
|
||||||
|
# Generating the ponce SLACKBUILDS.TXT file.
|
||||||
print(f'Generating the {self.ponce_txt} file... ', end='', flush=True)
|
print(f'Generating the {self.ponce_txt} file... ', end='', flush=True)
|
||||||
os.chdir(self.ponce_repo_path)
|
os.chdir(self.ponce_repo_path)
|
||||||
subprocess.call(f'./gen_sbo_txt.sh > {self.ponce_txt}', shell=True)
|
subprocess.call(f'./gen_sbo_txt.sh > {self.ponce_txt}', shell=True)
|
||||||
|
|
Loading…
Reference in a new issue