diff options
| author | Dan Fandrich <dan@coneharvesters.com> | 2020-03-26 23:32:09 +0100 | 
|---|---|---|
| committer | Dan Fandrich <dan@coneharvesters.com> | 2020-03-26 23:38:55 +0100 | 
| commit | c37220777b02f52592b16b81ccd43df1ab420c05 (patch) | |
| tree | d8f7b28d7f1902d0db2e92e8d5d25b0c09902a9c | |
| parent | 6e719bb97ca94c205e694bab9fd1def07725b3fd (diff) | |
| download | pkgsubmit-user/danf/results-db.tar pkgsubmit-user/danf/results-db.tar.gz pkgsubmit-user/danf/results-db.tar.bz2 pkgsubmit-user/danf/results-db.tar.xz pkgsubmit-user/danf/results-db.zip  | |
Add more dependency icons and high error attributes separately.user/danf/results-db
| -rw-r--r-- | autobuild/icons/lang-erlang.png | bin | 0 -> 885 bytes | |||
| -rw-r--r-- | autobuild/icons/lang-fortran.png | bin | 0 -> 844 bytes | |||
| -rw-r--r-- | autobuild/icons/lang-go.png | bin | 0 -> 536 bytes | |||
| -rw-r--r-- | autobuild/icons/lang-ocaml.png | bin | 0 -> 550 bytes | |||
| -rw-r--r-- | autobuild/icons/lang-tcl.png | bin | 0 -> 567 bytes | |||
| -rw-r--r-- | autobuild/results.php | 15 | 
6 files changed, 10 insertions, 5 deletions
diff --git a/autobuild/icons/lang-erlang.png b/autobuild/icons/lang-erlang.png Binary files differnew file mode 100644 index 0000000..45f9cf8 --- /dev/null +++ b/autobuild/icons/lang-erlang.png diff --git a/autobuild/icons/lang-fortran.png b/autobuild/icons/lang-fortran.png Binary files differnew file mode 100644 index 0000000..2a15214 --- /dev/null +++ b/autobuild/icons/lang-fortran.png diff --git a/autobuild/icons/lang-go.png b/autobuild/icons/lang-go.png Binary files differnew file mode 100644 index 0000000..fdf9904 --- /dev/null +++ b/autobuild/icons/lang-go.png diff --git a/autobuild/icons/lang-ocaml.png b/autobuild/icons/lang-ocaml.png Binary files differnew file mode 100644 index 0000000..3202b1e --- /dev/null +++ b/autobuild/icons/lang-ocaml.png diff --git a/autobuild/icons/lang-tcl.png b/autobuild/icons/lang-tcl.png Binary files differnew file mode 100644 index 0000000..b8938b6 --- /dev/null +++ b/autobuild/icons/lang-tcl.png diff --git a/autobuild/results.php b/autobuild/results.php index 9a81622..7614237 100644 --- a/autobuild/results.php +++ b/autobuild/results.php @@ -254,19 +254,24 @@ foreach ($failure as $rpm => $error) {  	if (is_flaky($history)) {  		$history_link = $history_link . " <img src='icons/warning-flaky.png' title='Flaky build' />";  	} -	$language_link = ""; +	$attr_link = "";  	if (!$fixed[$rpm]) {  		$attributes = get_package_attributes($packageid);  		if ($attributes) { -			# Attributes are space separated words of the form "lang_php" +			# Attributes are space separated words of the form "TYPE_SPECIFIER", e.g., "lang_php" +			# Types are currently build (use of a particular build system), +			# lang (use of a programming language) or err (a common build error).  			foreach (explode(" ", $attributes) as $attr) {  				$attrname = ucfirst(explode("_", $attr)[1]);  				$icon_fn = "icons/" . str_replace("_", "-", $attr) . ".png";  				if (file_exists($icon_fn)) { -					$language_link = $language_link . " <img src='$icon_fn' " . +					$attr_link = $attr_link . " <img src='$icon_fn' " .  						"title='$attrname dependency' />"; +				} else if (substr($attr, 0, 4) === "err_") { +					# TODO: create link into wiki with information about these errors +					$attr_link = $attr_link . " [$attrname err]";  				} else { -					$language_link = $language_link . " [$attrname dep]"; +					$attr_link = $attr_link . " [$attrname dep]";  				}  			}  		} @@ -276,7 +281,7 @@ foreach ($failure as $rpm => $error) {  	} else {  		echo "<li>$error_html $rpm";  	} -	echo " $status_html $history_link$language_link</li>\n"; +	echo " $status_html $history_link$attr_link</li>\n";  }  $db->close();  ?>  | 
