mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-06 08:46:21 +01:00
Updated for code style
This commit is contained in:
parent
9687c3937b
commit
e7e85f1ea0
1 changed files with 4 additions and 4 deletions
|
@ -9,14 +9,14 @@ from slpkg.blacklist import Blacklist
|
||||||
from slpkg.utilities import Utilities
|
from slpkg.utilities import Utilities
|
||||||
|
|
||||||
|
|
||||||
class Check(Configs, Utilities):
|
class Check(Configs):
|
||||||
""" Some checks before proceed. """
|
""" Some checks before proceed. """
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
super(Utilities, self).__init__()
|
|
||||||
|
|
||||||
self.black = Blacklist()
|
self.black = Blacklist()
|
||||||
|
self.utils = Utilities()
|
||||||
self.color = self.colour()
|
self.color = self.colour()
|
||||||
|
|
||||||
self.bold: str = self.color['bold']
|
self.bold: str = self.color['bold']
|
||||||
|
@ -66,9 +66,9 @@ class Check(Configs, Utilities):
|
||||||
found, not_found = [], []
|
found, not_found = [], []
|
||||||
|
|
||||||
for sbo in slackbuilds:
|
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:
|
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)
|
found.append(pkg_name)
|
||||||
else:
|
else:
|
||||||
not_found.append(sbo)
|
not_found.append(sbo)
|
||||||
|
|
Loading…
Add table
Reference in a new issue