mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-03 06:56:44 +01:00
Updated for coding style
This commit is contained in:
parent
851ce0182a
commit
6ab626cab2
2 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue