From 6ab626cab223f83b4fc768f6ace09e569ab07dde Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 6 Mar 2023 17:53:29 +0200 Subject: [PATCH] Updated for coding style --- slpkg/slackbuild.py | 8 ++++---- slpkg/update_repository.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/slpkg/slackbuild.py b/slpkg/slackbuild.py index deb58a52..8ebf9863 100644 --- a/slpkg/slackbuild.py +++ b/slpkg/slackbuild.py @@ -144,11 +144,11 @@ class Slackbuilds(Configs): location: str = SBoQueries(sbo).location() if self.ponce_repo: - ponce_repo_path_package = Path(self.ponce_repo_path, location, sbo) - build_package_path = Path(self.build_path, sbo) + path_ponce_repo_package = Path(self.ponce_repo_path, location, sbo) + path_build_package = Path(self.build_path, sbo) - shutil.copytree(ponce_repo_path_package, f'{self.build_path}{sbo}') - slackbuild = Path(build_package_path, f'{sbo}.SlackBuild') + shutil.copytree(path_ponce_repo_package, f'{self.build_path}{sbo}') + slackbuild = Path(path_build_package, f'{sbo}.SlackBuild') os.chmod(slackbuild, 0o775) else: diff --git a/slpkg/update_repository.py b/slpkg/update_repository.py index a1dd1630..ff9f4b63 100644 --- a/slpkg/update_repository.py +++ b/slpkg/update_repository.py @@ -118,7 +118,7 @@ class UpdateRepository(Configs, Utilities): file.unlink() 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: self.session.query(PonceTable).delete() else: