summaryrefslogtreecommitdiffstats
path: root/autobuild
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-12-27 21:22:04 +0000
committerPascal Terjan <pterjan@mageia.org>2012-12-27 21:22:04 +0000
commit550639882afed3753201cc7578efee43663d36b6 (patch)
tree81382184d9ba3c3cf90b15c3ec230f840252705f /autobuild
parent3db9c530ac21968aa87a7864b611a446877d0377 (diff)
downloadpkgsubmit-550639882afed3753201cc7578efee43663d36b6.tar
pkgsubmit-550639882afed3753201cc7578efee43663d36b6.tar.gz
pkgsubmit-550639882afed3753201cc7578efee43663d36b6.tar.bz2
pkgsubmit-550639882afed3753201cc7578efee43663d36b6.tar.xz
pkgsubmit-550639882afed3753201cc7578efee43663d36b6.zip
Use icons (stolen from gnome)
Diffstat (limited to 'autobuild')
-rw-r--r--autobuild/icons/error-build_failure.pngbin0 -> 423 bytes
-rw-r--r--autobuild/icons/error-install_deps_failure.pngbin0 -> 395 bytes
-rw-r--r--autobuild/icons/error-missing.pngbin0 -> 525 bytes
-rw-r--r--autobuild/icons/error-missing_dep.pngbin0 -> 698 bytes
-rw-r--r--autobuild/icons/error-recreate_srpm_failure.pngbin0 -> 671 bytes
-rw-r--r--autobuild/icons/state-fixed.pngbin0 -> 930 bytes
-rw-r--r--autobuild/icons/state-new.pngbin0 -> 653 bytes
-rw-r--r--autobuild/icons/state-removed.pngbin0 -> 842 bytes
-rw-r--r--autobuild/index.php16
9 files changed, 10 insertions, 6 deletions
diff --git a/autobuild/icons/error-build_failure.png b/autobuild/icons/error-build_failure.png
new file mode 100644
index 0000000..4db7de5
--- /dev/null
+++ b/autobuild/icons/error-build_failure.png
Binary files differ
diff --git a/autobuild/icons/error-install_deps_failure.png b/autobuild/icons/error-install_deps_failure.png
new file mode 100644
index 0000000..ad7d1d0
--- /dev/null
+++ b/autobuild/icons/error-install_deps_failure.png
Binary files differ
diff --git a/autobuild/icons/error-missing.png b/autobuild/icons/error-missing.png
new file mode 100644
index 0000000..c86a6b7
--- /dev/null
+++ b/autobuild/icons/error-missing.png
Binary files differ
diff --git a/autobuild/icons/error-missing_dep.png b/autobuild/icons/error-missing_dep.png
new file mode 100644
index 0000000..1793ff0
--- /dev/null
+++ b/autobuild/icons/error-missing_dep.png
Binary files differ
diff --git a/autobuild/icons/error-recreate_srpm_failure.png b/autobuild/icons/error-recreate_srpm_failure.png
new file mode 100644
index 0000000..7ab291d
--- /dev/null
+++ b/autobuild/icons/error-recreate_srpm_failure.png
Binary files differ
diff --git a/autobuild/icons/state-fixed.png b/autobuild/icons/state-fixed.png
new file mode 100644
index 0000000..8966a10
--- /dev/null
+++ b/autobuild/icons/state-fixed.png
Binary files differ
diff --git a/autobuild/icons/state-new.png b/autobuild/icons/state-new.png
new file mode 100644
index 0000000..937c2a6
--- /dev/null
+++ b/autobuild/icons/state-new.png
Binary files differ
diff --git a/autobuild/icons/state-removed.png b/autobuild/icons/state-removed.png
new file mode 100644
index 0000000..6341665
--- /dev/null
+++ b/autobuild/icons/state-removed.png
Binary files differ
diff --git a/autobuild/index.php b/autobuild/index.php
index c88c75d..5bdf2b5 100644
--- a/autobuild/index.php
+++ b/autobuild/index.php
@@ -119,18 +119,22 @@ echo "$nb_fixed packages have been fixed since this run and $nb_removed have bee
echo "<div style='float:left'><h1>Failed builds ($nb_failed/$nb_tried):</h1><ul>";
foreach ($failure as $rpm => $error) {
- $status = "";
+ $status_html = "";
if ($fixed[$rpm]) {
- $status = " <span style='color:green;'><b>Fixed!</b></span>";
+ $status_html = " <img src='icons/state-fixed.png' title='Fixed!' />";
} elseif ($removed[$rpm]) {
- $status = " <span style='color:yellow;'><b>Removed</b></span>";
+ $status_html = " <img src='icons/state-removed.png' title='Removed' />";
} elseif ($prev && !$prev_failure[$rpm]) {
- $status = " <span style='color:red;'><b>New!</b></span>";
+ $status_html = " <img src='icons/state-new.png' title='New!' />";
+ }
+ $error_html = $error;
+ if (file_exists("icons/error-$error.png")) {
+ $error_html = "<img src='icons/error-$error.png' title='$error'/>";
}
if (file_exists("$base_dir/$rpm/")) {
- 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";
} else {
- echo "<li>$rpm $error $status</li>\n";
+ echo "<li>$error_html $rpm $status_html</li>\n";
}
}