aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2016-11-21 20:19:18 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2016-11-21 20:19:18 -0800
commit1754b6bf47364d27c67d95fd3f9a93955d0de138 (patch)
tree7cf50da3040dfb2e74f821075867b63f24ec36a5 /gentoo-data.rb
parentbug#423207: changelogs. (diff)
downloadrbot-gentoo-1754b6bf47364d27c67d95fd3f9a93955d0de138.tar.gz
rbot-gentoo-1754b6bf47364d27c67d95fd3f9a93955d0de138.tar.bz2
rbot-gentoo-1754b6bf47364d27c67d95fd3f9a93955d0de138.zip
!support: allow optional "GLSA " prefix.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'gentoo-data.rb')
-rw-r--r--gentoo-data.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/gentoo-data.rb b/gentoo-data.rb
index f536e44..f0aa5f0 100644
--- a/gentoo-data.rb
+++ b/gentoo-data.rb
@@ -229,6 +229,7 @@ class GentooPlugin < Plugin
end
def glsa(m, params)
+ id = params[:glsa_id].gsub(/^(GLSA *)?/i,'')
source = GLSA_SRC.sub('@GLSA_ID@', params[:glsa_id])
res = fetch_file_or_url(source)
if res
@@ -402,7 +403,7 @@ plugin.default_auth( 'view', true )
REGEX_CP = /^(?:[-[:alnum:]]+\/)?[-+_[:alnum:]]+$/
REGEX_DEV = /^[-._[:alnum:]]+$/
REGEX_PROJECT = /^[-_@.[:alnum:]]+$/
-REGEX_GLSA = /^[-1234567890]+$/
+REGEX_GLSA = /^(GLSA ?)?[-1234567890]+$/i
plugin.map 'meta -v :pkg',
:requirements => {