From f67414a06e8740025e5b0a3f27485acf500e79a8 Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Thu, 16 Jan 2020 13:59:15 +0000 Subject: [PATCH] TargetSuite: use *_in_the_suite functions from Suite Use the info based on the binaries in the Suite object, instead of the inst_tester. This should also include packages that are in testing, but are not installable. --- britney2/__init__.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/britney2/__init__.py b/britney2/__init__.py index 96f3e20..5344344 100644 --- a/britney2/__init__.py +++ b/britney2/__init__.py @@ -111,30 +111,6 @@ class TargetSuite(Suite): logger_name = ".".join((self.__class__.__module__, self.__class__.__name__)) self._logger = logging.getLogger(logger_name) - def any_of_these_are_in_the_suite(self, pkg_ids): - """Test if at least one package of a given set is in the suite - - :param pkg_ids: A set of BinaryPackageId - :return: True if any of the packages in pkgs are currently in the suite - """ - return self.inst_tester.any_of_these_are_in_the_suite(pkg_ids) - - def is_pkg_in_the_suite(self, pkg_id): - """Test if the package of is in testing - - :param pkg_id: A BinaryPackageId - :return: True if the pkg is currently in the suite - """ - return self.inst_tester.is_pkg_in_the_suite(pkg_id) - - def which_of_these_are_in_the_suite(self, pkgs): - """Iterate over all packages that are in the suite - - :param pkgs: An iterable of package ids - :return: An iterable of package ids that are in the suite - """ - yield from self.inst_tester.which_of_these_are_in_the_suite(pkgs) - def is_installable(self, pkg_id): """Determine whether the given package can be installed in the suite