[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Archlinux: refactoring

Holger Levsen gitlab at salsa.debian.org
Tue Sep 25 22:40:59 BST 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
65086985 by Holger Levsen at 2018-09-25T21:40:51Z
reproducible Archlinux: refactoring

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_html_archlinux.sh


Changes:

=====================================
bin/reproducible_html_archlinux.sh
=====================================
@@ -136,12 +136,8 @@ repostats(){
 	fi
 }
 
-single_main_page(){
-	#
-	# write out the actual webpage
-	#
-	cd $ARCHBASE
-	PAGE=archlinux.html
+archlinux_page_header(){
+	local PAGE=$1
 	echo "$(date -u) - starting to build $PAGE"
 	cat > $PAGE <<- EOF
 	<!DOCTYPE html>
@@ -163,6 +159,15 @@ single_main_page(){
 	write_page_intro 'Arch Linux'
 	write_variation_table 'Arch Linux'
 	write_page "    <table><tr><th>repository</th><th>all source packages</th><th>reproducible packages</th><th>unreproducible packages</th><th>packages failing to build</th><th>packages in depwait state</th><th>packages download problems</th><th>blacklisted</th><th>unknown state</th></tr>"
+}
+
+single_main_page(){
+	#
+	# write out the actual webpage
+	#
+	cd $ARCHBASE
+	PAGE=archlinux.html
+	archlinux_page_header $PAGE
 	cat $HTML_REPOSTATS >> $PAGE
 	rm $HTML_REPOSTATS > /dev/null
 	write_page "    </table>"
@@ -187,8 +192,13 @@ single_main_page(){
 	echo "$(date -u) - enjoy $REPRODUCIBLE_URL/archlinux/$PAGE"
 }
 
-repostats
-#single_main_page
+repository_pages(){
+	echo
+}
 
 
+repostats
+single_main_page
+repository_pages
+
 # vim: set sw=0 noet :



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/65086985ac72395c55a8a6f49e9075e22bf599ae

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/65086985ac72395c55a8a6f49e9075e22bf599ae
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20180925/4bb9ff58/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list