mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Renamed var
This commit is contained in:
parent
cbc81396c5
commit
7d36fac530
1 changed files with 6 additions and 6 deletions
|
@ -70,15 +70,15 @@ class Check(Configs):
|
|||
|
||||
def is_blacklist(self, slackbuilds: list) -> None:
|
||||
""" Checking if the packages are blacklisted. """
|
||||
packages: list = []
|
||||
blacklist: list = []
|
||||
|
||||
for package in self.black.packages():
|
||||
if package in slackbuilds:
|
||||
packages.append(package)
|
||||
for sbo in slackbuilds:
|
||||
if sbo in self.black.packages():
|
||||
blacklist.append(sbo)
|
||||
|
||||
if packages:
|
||||
if blacklist:
|
||||
raise SystemExit(
|
||||
f"\nThe packages '{self.cyan}{', '.join(packages)}{self.endc}' is blacklisted.\n"
|
||||
f"\nThe packages '{self.cyan}{', '.join(blacklist)}{self.endc}' is blacklisted.\n"
|
||||
f"Please edit the '{self.black.blacklist_file_toml}' file.\n")
|
||||
|
||||
def is_empty_database(self) -> None:
|
||||
|
|
Loading…
Add table
Reference in a new issue