From f97ef59b4a1eb86ed7cef00eeb958c30409d6ed3 Mon Sep 17 00:00:00 2001 From: Ondrej Nosek Date: Mar 02 2020 13:06:45 +0000 Subject: Removes check of bodhi-client version Modification of this part of the code is not needed when a new major version of Bodhi is released (if there are no incompatibilities with previous Bodhi version). This approach was chosen instead of bumping the version every time there is a Bodhi major release. JIRA: COMPOSE-3860 Fixes: rhbz#1796972 Signed-off-by: Ondrej Nosek --- diff --git a/fedpkg/cli.py b/fedpkg/cli.py index ebf3a88..e2291ff 100644 --- a/fedpkg/cli.py +++ b/fedpkg/cli.py @@ -87,13 +87,9 @@ require_testcases=%(require_testcases)s def check_bodhi_version(): try: - dist = pkg_resources.get_distribution('bodhi_client') + pkg_resources.get_distribution('bodhi_client') except pkg_resources.DistributionNotFound: raise rpkgError('bodhi-client < 2.0 is not supported.') - major = int(dist.version.split('.', 1)[0]) - if major >= 5: - raise rpkgError( - 'This system has bodhi v{0}, which is unsupported.'.format(major)) class fedpkgClient(cliClient):