/[soft]/build_system/web/autobuild/results.php
ViewVC logotype

Diff of /build_system/web/autobuild/results.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6877 by pterjan, Thu Dec 27 18:11:03 2012 UTC revision 6882 by pterjan, Thu Dec 27 21:22:04 2012 UTC
# Line 119  echo "$nb_fixed packages have been fixed Line 119  echo "$nb_fixed packages have been fixed
119  echo "<div style='float:left'><h1>Failed builds ($nb_failed/$nb_tried):</h1><ul>";  echo "<div style='float:left'><h1>Failed builds ($nb_failed/$nb_tried):</h1><ul>";
120    
121  foreach ($failure as $rpm => $error) {  foreach ($failure as $rpm => $error) {
122          $status = "";          $status_html = "";
123          if ($fixed[$rpm]) {          if ($fixed[$rpm]) {
124                  $status = " <span style='color:green;'><b>Fixed!</b></span>";                  $status_html = " <img src='icons/state-fixed.png' title='Fixed!' />";
125          } elseif ($removed[$rpm]) {          } elseif ($removed[$rpm]) {
126                  $status = " <span style='color:yellow;'><b>Removed</b></span>";                  $status_html = " <img src='icons/state-removed.png' title='Removed' />";
127          } elseif ($prev && !$prev_failure[$rpm]) {          } elseif ($prev && !$prev_failure[$rpm]) {
128                  $status = " <span style='color:red;'><b>New!</b></span>";                  $status_html = " <img src='icons/state-new.png' title='New!' />";
129            }
130            $error_html = $error;
131            if (file_exists("icons/error-$error.png")) {
132                    $error_html = "<img src='icons/error-$error.png' title='$error'/>";
133          }          }
134          if (file_exists("$base_dir/$rpm/")) {          if (file_exists("$base_dir/$rpm/")) {
135                  echo "<li><a href='$base_dir/$rpm/'>$rpm</a> $error $status</li>\n";                  echo "<li>$error_html <a href='$base_dir/$rpm/'>$rpm</a> $status_html</li>\n";
136          } else {          } else {
137                  echo "<li>$rpm $error $status</li>\n";                  echo "<li>$error_html $rpm $status_html</li>\n";
138          }          }
139  }  }
140    

Legend:
Removed from v.6877  
changed lines
  Added in v.6882

  ViewVC Help
Powered by ViewVC 1.1.26