Bug#812461: qa.debian.org: Adacore redirector should match new hash lengths
Package: qa.debian.org
Severity: normal
Tags: patch
Hello.
The regular expression selecting hrefs in the Adacore redirector does
not match anymore because the length of some file hash has changed.
The attached patch should match any length.
Thanks.
Description: relax Adacore href regular expression
The length of file hashes has changes.
Match any length from now on.
Author: Nicolas Boulenguez <nicolas@debian.org>
--- a/fakeupstream.cgi
+++ b/fakeupstream.cgi
@@ -732,7 +732,7 @@
{
process_request( {
'webpages_urls_ref' => [ 'http://libre.adacore.com/download/configurations' ],
- 'download_url_file_re' => "<a href=\"(http://mirrors\\.cdn\\.adacore\\.com/art/[0-9a-f]{40})\">\\s*<span class=\"art-file-name\">($1(?:-gpl)?-[0-9.]+-src\\.(?:$suffix_re))</span>\\s*</a>",
+ 'download_url_file_re' => "<a href=\"(http://mirrors\\.cdn\\.adacore\\.com/art/[0-9a-f]+)\">\\s*<span class=\"art-file-name\">($1(?:-gpl)?-[0-9.]+-src\\.(?:$suffix_re))</span>\\s*</a>",
} );
}
Reply to: