diff options
author | Colin Guthrie <colin@mageia.org> | 2014-08-12 19:33:09 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-08-12 19:33:09 +0100 |
commit | ab8e385f2c8c264597891dae2b64f8ee0063da77 (patch) | |
tree | f319306180c5ee6129574636ee739638a20a8795 /modules/buildsystem/templates | |
parent | cf49bf2312f3d1f480012bacc92345201293b566 (diff) | |
download | puppet-ab8e385f2c8c264597891dae2b64f8ee0063da77.tar puppet-ab8e385f2c8c264597891dae2b64f8ee0063da77.tar.gz puppet-ab8e385f2c8c264597891dae2b64f8ee0063da77.tar.bz2 puppet-ab8e385f2c8c264597891dae2b64f8ee0063da77.tar.xz puppet-ab8e385f2c8c264597891dae2b64f8ee0063da77.zip |
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
Diffstat (limited to 'modules/buildsystem/templates')
-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] |