From 80439d6ae1c4cf32ea4434a73f70c3ff5bf7772a Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Sat, 3 Apr 2010 13:43:54 +0300 Subject: Do not mark multi-build updates processed on first sight. Fixes giving karma for e.g. https://admin.fedoraproject.org/updates/F13/FEDORA-2010-5813 when only geronimo-jta is installed and geronimo-jms not. --- fedora-easy-karma.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fedora-easy-karma.py') diff --git a/fedora-easy-karma.py b/fedora-easy-karma.py index eb6b20e..aabc90f 100755 --- a/fedora-easy-karma.py +++ b/fedora-easy-karma.py @@ -181,6 +181,7 @@ class FedoraEasyKarma(object): for build in builds: update = testing_builds[build] if update not in processed_updates and build in installed_testing_builds: + processed_updates.append(update) 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])) @@ -215,8 +216,6 @@ class FedoraEasyKarma(object): else: print "\n".join(installed_rpms) - processed_updates.append(update) - def already_commented(self, update, user): for comment in update["comments"]: -- cgit