Renamed var

This commit is contained in:
Dimitris Zlatanidis 2023-03-15 20:31:17 +02:00
parent cbc81396c5
commit 7d36fac530

View file

@ -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: