From ab8e385f2c8c264597891dae2b64f8ee0063da77 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 12 Aug 2014 19:33:09 +0100 Subject: Add a super simple API for checking whether an update SRPM exists. This will be useful for advisory publication checks to make sure the SRPMs actually exist prior to assigning an advisory ID --- modules/buildsystem/templates/vhost_repository.conf | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/buildsystem') 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') 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] -- cgit v1.2.1