mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Fixed blacklist managed
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
fa0cca538e
commit
d0121363b1
1 changed files with 2 additions and 2 deletions
|
@ -73,14 +73,14 @@ class BlackList:
|
|||
"""Print blacklist packages
|
||||
"""
|
||||
print("Packages in the blacklist:\n")
|
||||
for black in self.get_black():
|
||||
for black in list(self.black_filter()):
|
||||
if black:
|
||||
print(f"{self.green}{black}{self.endc}")
|
||||
|
||||
def add(self, pkgs):
|
||||
"""Add blacklist packages if not exist
|
||||
"""
|
||||
blacklist = self.get_black()
|
||||
blacklist = list(self.black_filter())
|
||||
pkgs = set(pkgs)
|
||||
print("Add packages in the blacklist:\n")
|
||||
with open(self.blackfile, "a") as black_conf:
|
||||
|
|
Loading…
Add table
Reference in a new issue