From 3951c8e6761bc486dcf45afe58bff6e936ce23f5 Mon Sep 17 00:00:00 2001 From: Ben Cotton Date: Mar 22 2021 14:12:48 +0000 Subject: Fix the Bodhi client calls On F33, running this script fails with an import error. With this commit, it will run as expected. Signed-off-by: Ben Cotton --- diff --git a/commonbugs-update b/commonbugs-update index 522812b..94fe491 100755 --- a/commonbugs-update +++ b/commonbugs-update @@ -32,7 +32,7 @@ import tempfile # External libraries: python-bugzilla, python-fedora, python-wikitcms import bugzilla -from fedora.client.bodhi import Bodhi2Client +from bodhi.client.bindings import BodhiClient import wikitcms.wiki def get_yesno(question): @@ -263,7 +263,7 @@ class CommonBugs(wikitcms.page.Page): self.issues = [Issue(issue) for issue in issues] allbugs = list(itertools.chain.from_iterable(issue.bugids for issue in self.issues)) - bodhi = Bodhi2Client() + bodhi = BodhiClient() resp = bodhi.query(bugs=','.join(allbugs)) updates = [upd for upd in resp.updates if upd['release'].name == 'F{0}'.format(rel)] # FIXME: Bodhi should really give us this, but it doesn't.