Updated for code style

This commit is contained in:
Dimitris Zlatanidis 2023-03-15 19:17:20 +02:00
parent 9687c3937b
commit e7e85f1ea0

View file

@ -9,14 +9,14 @@ from slpkg.blacklist import Blacklist
from slpkg.utilities import Utilities
class Check(Configs, Utilities):
class Check(Configs):
""" Some checks before proceed. """
def __init__(self):
super(Configs, self).__init__()
super(Utilities, self).__init__()
self.black = Blacklist()
self.utils = Utilities()
self.color = self.colour()
self.bold: str = self.color['bold']
@ -66,9 +66,9 @@ class Check(Configs, Utilities):
found, not_found = [], []
for sbo in slackbuilds:
package: str = self.is_package_installed(sbo, file_pattern)
package: str = self.utils.is_package_installed(sbo, file_pattern)
if package:
pkg_name: str = self.split_installed_pkg(package)[0]
pkg_name: str = self.utils.split_installed_pkg(package)[0]
found.append(pkg_name)
else:
not_found.append(sbo)