diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2010-04-03 13:43:53 +0300 |
---|---|---|
committer | Till Maas <opensource@till.name> | 2010-04-03 16:55:21 +0200 |
commit | d12039334e0fa209d860130c67482108af6c6966 (patch) | |
tree | c789a28647aba638f7e98441feda67899160457d | |
parent | 65c5fbfe4ea8eff4c20a08bdf7be1ef01d0629bf (diff) | |
download | fedora-easy-karma-d12039334e0fa209d860130c67482108af6c6966.tar.gz fedora-easy-karma-d12039334e0fa209d860130c67482108af6c6966.tar.xz fedora-easy-karma-d12039334e0fa209d860130c67482108af6c6966.zip |
Filter out updates requested somewhere earlier.
-rwxr-xr-x | fedora-easy-karma.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fedora-easy-karma.py b/fedora-easy-karma.py index 3e2fe11..cc4c6a5 100755 --- a/fedora-easy-karma.py +++ b/fedora-easy-karma.py @@ -150,6 +150,9 @@ class FedoraEasyKarma(object): self.debug("starting bodhi query") # probably raises some exceptions testing_updates = bc.query(release=release, status="testing", limit=1000)["updates"] + # can't query for requestless as of python-fedora 0.3.18 + # (request=None results in no filtering by request) + testing_updates = [x for x in testing_updates if not x["request"]] if self.options.bodhi_update_cache: try: os.makedirs(self.options.bodhi_cachedir) @@ -178,9 +181,6 @@ class FedoraEasyKarma(object): for build in builds: update = testing_builds[build] if update not in processed_updates and build in installed_testing_builds: - # update is requested to be moved to stable - if update["request"]: - continue affected_builds = [b["nvr"] for b in update["builds"]] installed_pkgs = list(itertools.chain(*[installed_testing_builds[b] for b in affected_builds if b in installed_testing_builds])) |