From db683395dd42d707e8d6fb89fc759418f00c1ba7 Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Nov 14 2017 13:41:57 +0000 Subject: Work with Bodhi 3 Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1507410 Signed-off-by: Lubomír Sedlář --- diff --git a/fedpkg/__init__.py b/fedpkg/__init__.py index b45645d..dd1c2d9 100644 --- a/fedpkg/__init__.py +++ b/fedpkg/__init__.py @@ -237,7 +237,9 @@ class Commands(pyrpkg.Commands): '--new', '--release', self.branch_merge, '--file', 'bodhi.template', self.nvr, '--username', self.user] - elif bodhi_major_version == 2: + elif bodhi_major_version < 4: + # Version 3 is compatible with 2, it was bumped for server side + # reasons. cmd = ['bodhi', 'updates', 'new', '--file', 'bodhi.template', '--user', self.user] if bodhi_config['staging']: