From c3a0412c580262de5833abcec0c7ab2b29f1402f Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Mar 14 2019 14:02:25 +0000 Subject: Bypass python(abi) Require in CheckIfDepsDeprecated Python packages require python(abi). The issue is that it is provided by both python2-devel and python3-devel, which causes CheckIfDepsDeprecated to detect our package as depending on the deprecated() python2 in python3 packages. This patch makes it ignore the python(abi) require to avoid this, the detection of python2 reposing now solely on the presence of python2-devel require. --- diff --git a/plugins/generic.py b/plugins/generic.py index 9f6c114..8bfac8e 100644 --- a/plugins/generic.py +++ b/plugins/generic.py @@ -1947,6 +1947,9 @@ class CheckIfDepsDeprecated(GenericCheckBase): if r.startswith('rpmlib'): requires_to_process.remove(r) continue + if "python(abi)" in r: + requires_to_process.remove(r) + continue for pkg in self.spec.packages: if r in self.rpms.get(pkg).provides: requires_to_process.remove(r)