| |
@@ -87,13 +87,9 @@
|
| |
|
| |
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):
|
| |
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 onosek@redhat.com