[PATCH] Bug 786225 Allow build for selective targets

Scott Seago sseago at redhat.com
Thu Feb 2 20:55:32 UTC 2012


https://bugzilla.redhat.com/show_bug.cgi?id=786225

In addition to allowing 'build all' (i.e. simultaneous build for all targets), also allow building for individual targets. This functionality was already exposed once built, but the only way to get there was to build all, then delete some  builds.

Now you can build for just one target after initial image creation.
---
 src/app/views/images/show.html.haml |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/app/views/images/show.html.haml b/src/app/views/images/show.html.haml
index 7e777c0..6de8068 100644
--- a/src/app/views/images/show.html.haml
+++ b/src/app/views/images/show.html.haml
@@ -45,6 +45,8 @@
                   - if failed_build_count > 0
                     .light
                       = t('images.show.failed_build_attempts', :count => failed_build_count)
+                - elsif !@build
+                  = button_to t('.build'), image_target_images_path(@image.id, :target => driver, :build_id => @build ? @build.id : nil), :method => :post
                 - else
                    
             %dd
-- 
1.7.6.4




More information about the aeolus-devel mailing list