bodhi/overrides.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 7d9d1450373e9ddb13f35c768663c8982c7d9d94 Author: Luke Macken lmacken@redhat.com Date: Tue Jun 21 13:31:13 2011 -0400
Fix a bug in our buildroot override sanity checking.
This allows people to submit overrides for updates that are already pushed to testing.
https://fedorahosted.org/rel-eng/ticket/4779
diff --git a/bodhi/overrides.py b/bodhi/overrides.py index c5da652..4766aa6 100644 --- a/bodhi/overrides.py +++ b/bodhi/overrides.py @@ -164,9 +164,9 @@ class BuildRootOverrideController(Controller): # Determine the release by the tag, and sanity check the builds for tag in tags: for rel in Release.select(): - if tag == rel.candidate_tag: + if tag in (rel.candidate_tag, rel.testing_tag): release = last_release = rel - elif tag in (rel.testing_tag, rel.stable_tag): + elif tag == rel.stable_tag: flash('Error: %s is already tagged with %s' % ( build, tag)) if request_format() == 'json': return dict()