From 168494c0db763d8cff41469388af8100cb1a5784 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 21 Aug 2015 15:27:50 +0200 Subject: reproducible: get rid off javascript in dashboard, thanks Ulrike --- bin/reproducible_common.sh | 5 +++-- hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index b84a4669..0dfd7beb 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -240,9 +240,10 @@ write_page_header() { write_page "" 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 IN ('unreproducible') AND s.suite = 'unstable' AND s.architecture = 'amd64' AND s.id NOT IN (SELECT package_id FROM notes) ORDER BY build_date DESC LIMIT 23"|sort -R|head -1) - write_page "
" - write_page "https://reproducible.debian.net/" + write_page "" + write_page "" write_page "" + write_page "
" write_page "

There's a new HowTo in early development: How to make your software reproducible? We appreciate feedback on it, but please don't consider this document to be finished, comprehensive or correct yet.

" fi write_page "" diff --git a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net index 5eb342ef..4345120c 100644 --- a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net +++ b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net @@ -186,6 +186,13 @@ Use common-debian-service-https-redirect reproducible.debian.net RewriteCond /var/lib/jenkins/userContent/reproducible/rb-pkg/unstable/amd64/$1.html -f RewriteRule ^/([a-z0-9.+-]+) /rb-pkg/unstable/amd64/$1.html [R=302,L] + # redirect rb.d.n/reproducible.html?SrcPkg=$PKG → rb.d.n/rb-pkg/unstable/amd64/$PKG.html + RewriteCond %{HTTP_HOST} reproducible\.debian\.net + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond /var/lib/jenkins/userContent/reproducible/rb-pkg/unstable/amd64/$1.html -f + RewriteRule ^/reproducible.html?SrcPkg=([a-z0-9.+-]+) /rb-pkg/unstable/amd64/$1.html [R=302,L] + # redirect rb.d.n/$PKG → rb.d.n/rb-pkg/experimental/amd64/$PKG.html # (this is the fallback for the previous redirect and should only catch packages which are only in experimental) RewriteCond %{HTTP_HOST} reproducible\.debian\.net -- cgit v1.2.3-70-g09d2