[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible: prefil form with latest unreproducible result in unstable

Holger Levsen holger at moszumanska.debian.org
Sat Jul 18 23:54:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 8a7377f2b3b91e9a59098e5ed983a947c453c151
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun Jul 19 01:53:55 2015 +0200

    reproducible: prefil form with latest unreproducible result in unstable
---
 bin/reproducible_common.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index d63dc26..4d964a1 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -222,8 +222,9 @@ write_page_header() {
 	write_page "<li><a href=\"https://wiki.debian.org/ReproducibleBuilds\" target=\"_blank\">wiki</a></li>"
 	write_page "</ul>"
 	if [ "$1" = "$MAINVIEW" ] ; then
+		LATEST=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT s.name FROM results AS r JOIN sources AS s ON r.package_id = s.id WHERE r.status = 'unreproducible' order by build_date desc limit 1")
 		write_page "<form onsubmit=\"location.href='https://reproducible.debian.net/' + document.getElementById('SrcPkg').value; return false;\">"
-		write_page "https://reproducible.debian.net/<input type=\"text\" id=\"SrcPkg\" />"
+		write_page "https://reproducible.debian.net/<input type=\"text\" id=\"SrcPkg\" value=\"$LATEST\"/>"
 		write_page "<input type=\"submit\" value=\"submit source package name\" />"
 	fi
 	write_page "</header>"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list