Index: build/web/building.cgi ================================================================== --- build/web/building.cgi +++ build/web/building.cgi @@ -33,24 +33,26 @@ } if {[info exists outfile]} { if {[file exists $outfile]} { set status "Complete" + set terminal 1 set url "http://kitcreator.rkeene.org/kits/$key/$filename" } elseif {[file exists "${outfile}.buildfail"]} { set status "Failed" - set terminal 1 } else { set status "Building" } } puts "Content-Type: text/html" if {[info exists url]} { - puts "Location: $url" + # Use a refresh here instead of a "Location" so that + # the client can see the page + puts "Refresh: 0;url=$url" } else { if {!$terminal} { puts "Refresh: 30;url=." } } @@ -60,7 +62,10 @@ puts "\t\tKitCreator, Web Interface" puts "\t" puts "\t" puts "\t\t

KitCreator Web Interface

" puts "\t\t

Status: $status

" +if {[info exists url]} { +puts "\t\t

URL: $url

" +} puts "\t" puts ""