Fix for resolve off

This commit is contained in:
Dimitris Zlatanidis 2024-03-19 00:07:12 +02:00
parent deb479771b
commit f354f6a4b7
2 changed files with 6 additions and 4 deletions

View file

@ -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
]
}

View file

@ -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)