From 721a239b7075a0e238a17ee5f70ee487ddd0b9d9 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 31 Mar 2023 22:16:51 +0300 Subject: [PATCH] Updated for version print --- slpkg/dependees.py | 4 ++-- slpkg/tracking.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/slpkg/dependees.py b/slpkg/dependees.py index b041219d..d628d553 100644 --- a/slpkg/dependees.py +++ b/slpkg/dependees.py @@ -53,7 +53,7 @@ class Dependees(Configs): else: version: str = SBoQueries(pkg).version() - package: str = f'{self.byellow}{pkg}-{version}{self.endc}' + package: str = f'{self.byellow}{pkg} {version}{self.endc}' print(package) @@ -73,7 +73,7 @@ class Dependees(Configs): else: version: str = SBoQueries(dep[0]).version() - dependency: str = (f'{self.cyan}{dep[0]}{self.endc}-{self.yellow}' + dependency: str = (f'{self.cyan}{dep[0]}{self.endc} {self.yellow}' f'{version}{self.endc}') if i == 1: diff --git a/slpkg/tracking.py b/slpkg/tracking.py index b7f8cf36..f126ca22 100644 --- a/slpkg/tracking.py +++ b/slpkg/tracking.py @@ -47,7 +47,7 @@ class Tracking(Configs): if self.utils.is_option(self.flag_bin_repository, self.flags): version: str = BinQueries(package, repo).version() - pkg = f'{self.yellow}{package}-{version}{self.endc}' + pkg = f'{self.yellow}{package} {version}{self.endc}' if self.utils.is_option(self.flag_bin_repository, self.flags): requires: list = Required(package, repo).resolve() @@ -67,9 +67,9 @@ class Tracking(Configs): if self.utils.is_option(self.flag_pkg_version, self.flags): - version: str = f"-{self.yellow}{SBoQueries(req).version()}{self.endc}" + version: str = f" {self.yellow}{SBoQueries(req).version()}{self.endc}" if self.utils.is_option(self.flag_bin_repository, self.flags): - version: str = f"-{self.yellow}{BinQueries(req, repo).version()}{self.endc}" + version: str = f" {self.yellow}{BinQueries(req, repo).version()}{self.endc}" require: str = f'{self.cyan}{req}{self.endc}{version}'