[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: extend redirects for pkg search to also match packages only in experimental

Holger Levsen holger at moszumanska.debian.org
Wed Jan 6 10:41:26 UTC 2016


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 6b289c6eba9c43451cbab5ba76288d310f13d473
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Jan 6 11:41:06 2016 +0100

    reproducible: extend redirects for pkg search to also match packages only in experimental
---
 .../etc/apache2/sites-available/jenkins.debian.net.conf       | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf
index b5d39a8..5a0e1c2 100644
--- a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf
+++ b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf
@@ -201,14 +201,23 @@ Use common-debian-service-https-redirect reproducible-builds.org
 	RewriteCond /var/lib/jenkins/userContent/reproducible/rb-pkg/unstable/amd64/%2.html -f
 	RewriteRule ^/redirect /rb-pkg/unstable/amd64/%2.html? [R=302,L]
 
+	# the following two rules are fallbacks for the previous two redirects and should only catch packages which are only in experimental
+
 	# 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
 	RewriteCond %{REQUEST_FILENAME} !-f
 	RewriteCond %{REQUEST_FILENAME} !-d
 	RewriteCond /var/lib/jenkins/userContent/reproducible/rb-pkg/experimental/amd64/$1.html -f
 	RewriteRule ^/([a-z0-9.+-]+) /rb-pkg/experimental/amd64/$1.html [R=302,L]
 
+	# redirect rb.d.n/redirect/?SrcPkg=$PKG → rb.d.n/rb-pkg/experimental/amd64/$PKG.html
+	RewriteCond %{HTTP_HOST} reproducible\.debian\.net
+	RewriteCond %{REQUEST_FILENAME} !-f
+	RewriteCond %{REQUEST_FILENAME} !-d
+	RewriteCond %{QUERY_STRING} ^(\w+)=([a-z0-9.+-]+)$
+	RewriteCond /var/lib/jenkins/userContent/reproducible/rb-pkg/experimental/amd64/%2.html -f
+	RewriteRule ^/redirect /rb-pkg/experimental/amd64/%2.html? [R=302,L]
+
 	# redirect rb.d.n/$suite/(amd64|armhf)/$PKG → rb.d.n/rb-pkg/$suite/$arch/$PKG.html
 	RewriteCond %{HTTP_HOST} reproducible\.debian\.net
 	RewriteCond %{REQUEST_FILENAME} !-f

-- 
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