mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Fixed for black packages
This commit is contained in:
parent
7100e55661
commit
dc461eff53
1 changed files with 16 additions and 12 deletions
|
@ -4,6 +4,7 @@
|
||||||
from slpkg.configs import Configs
|
from slpkg.configs import Configs
|
||||||
from slpkg.views.ascii import Ascii
|
from slpkg.views.ascii import Ascii
|
||||||
from slpkg.utilities import Utilities
|
from slpkg.utilities import Utilities
|
||||||
|
from slpkg.blacklist import Blacklist
|
||||||
from slpkg.sbos.queries import SBoQueries
|
from slpkg.sbos.queries import SBoQueries
|
||||||
from slpkg.binaries.queries import BinQueries
|
from slpkg.binaries.queries import BinQueries
|
||||||
|
|
||||||
|
@ -19,6 +20,7 @@ class Tracking(Configs):
|
||||||
self.ascii = Ascii()
|
self.ascii = Ascii()
|
||||||
self.color = self.colour()
|
self.color = self.colour()
|
||||||
self.utils = Utilities()
|
self.utils = Utilities()
|
||||||
|
self.black = Blacklist()
|
||||||
|
|
||||||
self.llc: str = self.ascii.lower_left_corner
|
self.llc: str = self.ascii.lower_left_corner
|
||||||
self.hl: str = self.ascii.horizontal_line
|
self.hl: str = self.ascii.horizontal_line
|
||||||
|
@ -76,20 +78,22 @@ class Tracking(Configs):
|
||||||
print(f' {self.cyan}No dependencies{self.endc}')
|
print(f' {self.cyan}No dependencies{self.endc}')
|
||||||
else:
|
else:
|
||||||
for i, req in enumerate(requires, start=1):
|
for i, req in enumerate(requires, start=1):
|
||||||
require: str = f'{self.cyan}{req}{self.endc}'
|
if req not in self.black.packages():
|
||||||
|
|
||||||
if self.flag_pkg_version:
|
require: str = f'{self.cyan}{req}{self.endc}'
|
||||||
|
|
||||||
if self.repo_for_binaries:
|
if self.flag_pkg_version:
|
||||||
version: str = f" {self.yellow}{bin_repo_dict[req][0]}{self.endc}"
|
|
||||||
|
if self.repo_for_binaries:
|
||||||
|
version: str = f" {self.yellow}{bin_repo_dict[req][0]}{self.endc}"
|
||||||
|
else:
|
||||||
|
version: str = f" {self.yellow}{sbo_repo_dict[req][2]}{self.endc}"
|
||||||
|
|
||||||
|
require: str = f'{self.cyan}{req}{self.endc}{version}'
|
||||||
|
|
||||||
|
if i == 1:
|
||||||
|
print(f' {require}')
|
||||||
else:
|
else:
|
||||||
version: str = f" {self.yellow}{sbo_repo_dict[req][2]}{self.endc}"
|
print(f'{sp}{require}')
|
||||||
|
|
||||||
require: str = f'{self.cyan}{req}{self.endc}{version}'
|
|
||||||
|
|
||||||
if i == 1:
|
|
||||||
print(f' {require}')
|
|
||||||
else:
|
|
||||||
print(f'{sp}{require}')
|
|
||||||
|
|
||||||
print(f'\n{self.grey}{how_many} dependencies for {package}{self.endc}\n')
|
print(f'\n{self.grey}{how_many} dependencies for {package}{self.endc}\n')
|
||||||
|
|
Loading…
Reference in a new issue