From f354f6a4b77743077d797eed526366a2f9d7ab55 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 19 Mar 2024 00:07:12 +0200 Subject: [PATCH] Fix for resolve off --- slpkg/main.py | 6 ++++-- slpkg/tracking.py | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/slpkg/main.py b/slpkg/main.py index 5a9129d4..85cd999a 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -257,7 +257,7 @@ class Menu(Configs): self.flag_pkg_version, self.flag_short_pkg_version, self.flag_no_case, - self.flag_short_no_case + self.flag_short_no_case, ], 'tracking': [ self.flag_search, @@ -267,7 +267,9 @@ class Menu(Configs): self.flag_repository, self.flag_short_repository, self.flag_no_case, - self.flag_short_no_case + self.flag_short_no_case, + self.flag_resolve_off, + self.flag_short_resolve_off ] } diff --git a/slpkg/tracking.py b/slpkg/tracking.py index 4aa9a4a2..c9581b81 100644 --- a/slpkg/tracking.py +++ b/slpkg/tracking.py @@ -100,9 +100,9 @@ class Tracking(Configs): def set_package_requires(self, package: str) -> None: if self.repository not in [self.repos.sbo_repo_name, self.repos.ponce_repo_name]: - self.package_requires: tuple = Required(self.data, package).resolve() + self.package_requires: tuple = Required(self.data, package, self.flags).resolve() else: - self.package_requires: tuple = Requires(self.data, package).resolve() + self.package_requires: tuple = Requires(self.data, package, self.flags).resolve() if self.package_requires: self.require_length: int = max(len(name) for name in self.package_requires)