Commit 19c0ec0a authored by Florian Pritz's avatar Florian Pritz
Browse files

archive: Fix redirection for pkgnames with hyphens for .all subdir

Similar change to cb7ac5c3

 except that
the pattern is adapted to extract the first char of the pkgname too.

Signed-off-by: Florian Pritz's avatarFlorian Pritz <>
parent cff9dea0
......@@ -29,7 +29,9 @@ server {
root {{ archive_dir }};
location /.all/ {
rewrite ^/.all/((([^/])[^/]*?)-[^-/]+-[0-9]+-[^-]+[^/]*\.pkg\.tar\.xz(\.sig)?)$ /packages/$3/$2/$1;
location ~ ^/.all/(<?filename>(?<pkgname>(?<pkgname_first_char>[^/])[^/]+)-(?<pkgver>[^-/]+)-(?<pkgrel>[0-9]+)-(?<arch>[^-/]+)\.pkg\.tar\.xz(?<sig>\.sig)?)$ {
rewrite ^ /packages/$pkgname_first_char/$pkgname/$filename;
location ~ /repos/201[3456]/.*/.*\.pkg\.tar\.xz(\.sig)? {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment