Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2023-03-06 17:53:29 +02:00
parent 851ce0182a
commit 6ab626cab2
2 changed files with 5 additions and 5 deletions

View file

@ -144,11 +144,11 @@ class Slackbuilds(Configs):
location: str = SBoQueries(sbo).location() location: str = SBoQueries(sbo).location()
if self.ponce_repo: if self.ponce_repo:
ponce_repo_path_package = Path(self.ponce_repo_path, location, sbo) path_ponce_repo_package = Path(self.ponce_repo_path, location, sbo)
build_package_path = Path(self.build_path, sbo) path_build_package = Path(self.build_path, sbo)
shutil.copytree(ponce_repo_path_package, f'{self.build_path}{sbo}') shutil.copytree(path_ponce_repo_package, f'{self.build_path}{sbo}')
slackbuild = Path(build_package_path, f'{sbo}.SlackBuild') slackbuild = Path(path_build_package, f'{sbo}.SlackBuild')
os.chmod(slackbuild, 0o775) os.chmod(slackbuild, 0o775)
else: else:

View file

@ -118,7 +118,7 @@ class UpdateRepository(Configs, Utilities):
file.unlink() file.unlink()
def delete_sbo_data(self) -> None: def delete_sbo_data(self) -> None:
""" Delete the table from the database. """ """ Delete all the data from a table of the database. """
if self.ponce_repo: if self.ponce_repo:
self.session.query(PonceTable).delete() self.session.query(PonceTable).delete()
else: else: