Commit b78a784e authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian builtin-pho: include (no)buildinfo pages properly in navigation

parent 10578989
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -222,6 +222,8 @@ write_page_header() {
		|| [ "$1" = "repositories" ] \
		|| [ "$1" = "variations" ] \
		|| [ "$1" = "suite_arch_stats" ] \
		|| [ "$1" = "no_buildinfos" ] \
		|| [ "$1" = "buildinfos" ] \
		|| [ "$1" = "bugs" ] \
		|| [ "$1" = "nodes_health" ] \
		|| [ "$1" = "job_health" ] \
@@ -234,6 +236,13 @@ write_page_header() {
		displayed_page=''
	fi

	if [ "$1" = "no_buildinfos" ] \
		|| [ "$1" = "buildinfos" ] ; then
		suite_arch_nav_template="\"suite_arch_nav_template\": \"/debian/{{suite}}/{{arch}}/index_$1.html\""
	else
		suite_arch_nav_template=''
	fi

	# Create json for suite links (a list of objects)
	suite_links="\"suite_nav\": { \"suite_list\": ["
	comma=0
@@ -287,6 +296,9 @@ write_page_header() {
	if [[ ! -z $include_pkgset_link ]] ; then
		context+=", $include_pkgset_link"
	fi
	if [[ ! -z $suite_arch_nav_template ]] ; then
		context+=", $suite_arch_nav_template"
	fi
	context+="}"

	write_page "<header class=\"head\">"
+2 −0
Original line number Diff line number Diff line
@@ -19,6 +19,8 @@ common_init "$@"
# ToDo:
# - create graphs
# - import the data from the database on pb7 into the one on jenkins
# - fix off by one error
# - include data for stretch and experimental

get_localsuite() {
	if [ "$SUITE" = "unstable" ] ; then