bodhi/controllers.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit 955322be3e26f9aa03c6cbb0d104e5061d72abe4
Author: Luke Macken <lmacken(a)redhat.com>
Date: Mon Apr 11 14:43:35 2011 -0400
Add the appropriate pending tag when adding a build to an existing update.
diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index 725cc44..05963b0 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -711,6 +711,18 @@ class Root(controllers.RootController):
for build in builds:
if build not in edited_builds:
new_builds.append(build)
+
+ # Add the appropriate pending tags
+ try:
+ if edited.request == 'testing':
+ koji.tagBuild(edited.release.pending_testing_tag,
+ build.nvr, force=True)
+ elif edited.request == 'stable':
+ koji.tagBuild(edited.release.pending_stable_tag,
+ build.nvr, force=True)
+ except TagError, e:
+ log.exception(e)
+
for build in edited_builds:
if build not in builds:
removed_builds.append(build)
Show replies by date