diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-07-19 01:53:55 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-07-19 01:53:55 +0200 |
commit | 8a7377f2b3b91e9a59098e5ed983a947c453c151 (patch) | |
tree | 51c61737a2601cdcc9632b05d108f7d5745627d5 | |
parent | 930e8da1fdcce85d12bf508c586275a71202b7ed (diff) | |
download | jenkins.debian.net-8a7377f2b3b91e9a59098e5ed983a947c453c151.tar.xz |
reproducible: prefil form with latest unreproducible result in unstable
-rwxr-xr-x | bin/reproducible_common.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index d63dc26e..4d964a11 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>" |