From a52e929f01438d3ef3db688984f52f28125861b9 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 10 May 2024 23:55:25 +0300 Subject: [PATCH] Updated for color --- slpkg/tracking.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/slpkg/tracking.py b/slpkg/tracking.py index 05222238..f16a15da 100644 --- a/slpkg/tracking.py +++ b/slpkg/tracking.py @@ -104,13 +104,15 @@ class Tracking(Configs): # pylint: disable=[R0902] Args: require (str): Require name. """ - self.require_line: str = f'{self.cyan}{require}{self.endc}' + color: str = self.cyan if require not in self.data: - self.require_line: str = f'{self.red}{require}{self.endc}' + color: str = self.red + + self.require_line: str = f'{color}{require}{self.endc}' if self.option_for_pkg_version: self.set_package_dependency_version(require) - self.require_line: str = (f'{self.cyan}{require:<{self.require_length}}{self.endc}' + self.require_line: str = (f'{color}{require:<{self.require_length}}{self.endc}' f'{self.package_dependency_version}') def set_package_dependency_version(self, require: str) -> None: