diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/buildsystem/templates/vhost_repository.conf | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/buildsystem/templates/vhost_repository.conf b/modules/buildsystem/templates/vhost_repository.conf index 39c4c689..0a7ed67f 100644 --- a/modules/buildsystem/templates/vhost_repository.conf +++ b/modules/buildsystem/templates/vhost_repository.conf @@ -8,6 +8,15 @@ distros = scope.lookupvar('buildsystem::var::distros::distros') <VirtualHost *:80> ServerName <%= scope.lookupvar('buildsystem::var::repository::hostname') %> DocumentRoot <%= mirror_root %> + + # Some simple API to check existence of SRPMs for QA + RewriteEngine On + + RewriteCond /distrib/bootstrap/distrib/$1/SRPMS/$2/updates_testing/$3.src.rpm -f + RewriteRule ^/qa/checksrpm/([1-9][0-9]*)/([a-z_]+)/([^/]+)$ http://repository.mageia.org/qa/checksrpm/found [L,R=302] + + RewriteRule ^/qa/checksrpm/ - [L,G] + <%- distros.keys.sort.each{|distroname| distro = distros[distroname] |