Revert "Work around bandersnatch not supporting pep503"
This reverts the combined commitsc640ca2d97
andce7d4b3748
. The newly released bandersnatch 1.11 fixes these layout issues (see I2b5822a7383b8f2f49958c8268453333dabe52cc) Depends-On: I6a1f213a3127f57b41b4ec7e3f128b1bbde2ae37 Change-Id: Ia06cb56b510e2ac5fa232323f97db1b1b18a4519
This commit is contained in:
parent
c8dcc011f1
commit
10b0305fe2
@ -51,26 +51,6 @@ NameVirtualHost <%= @vhost_name %>:<%= @port %>
|
|||||||
RewriteCond %{DOCUMENT_ROOT}/npm/$1/$1$2 -d
|
RewriteCond %{DOCUMENT_ROOT}/npm/$1/$1$2 -d
|
||||||
RewriteRule ^/npm/([^/])([^/]*)(/.*)?$ /npm/$1/$1$2$3 [L]
|
RewriteRule ^/npm/([^/])([^/]*)(/.*)?$ /npm/$1/$1$2$3 [L]
|
||||||
|
|
||||||
# TODO(jhesketh): Remove this after bandersnatch implements pep503
|
|
||||||
# https://bitbucket.org/pypa/bandersnatch/pull-requests/20/fully-implement-pep-503-normalization/diff
|
|
||||||
|
|
||||||
# Special cases for openstack.nose_plugin & backports.*
|
|
||||||
RewriteRule ^(.*)/openstack-nose-plugin(.*)$ $1/openstack.nose_plugin$2
|
|
||||||
RewriteRule ^(.*)/backports-(.*)$ $1/backports.$2
|
|
||||||
|
|
||||||
RewriteCond %{REQUEST_URI} ^/pypi/simple/([^/])([^/]*)
|
|
||||||
RewriteCond %{DOCUMENT_ROOT}/pypi/simple/$1/$1$2 -d
|
|
||||||
RewriteRule ^/pypi/simple/([^/])([^/]*)(/.*)?$ /pypi/simple/$1/$1$2$3 [L]
|
|
||||||
|
|
||||||
# Try again but replacing -'s with .'s
|
|
||||||
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
|
|
||||||
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-d
|
|
||||||
RewriteRule (.*)-(.*) $1.$2 [N]
|
|
||||||
|
|
||||||
RewriteCond %{REQUEST_URI} ^/pypi/simple/([^/])([^/]*)
|
|
||||||
RewriteCond %{DOCUMENT_ROOT}/pypi/simple/$1/$1$2 -d
|
|
||||||
RewriteRule ^/pypi/simple/([^/])([^/]*)(/.*)?$ /pypi/simple/$1/$1$2$3 [L]
|
|
||||||
|
|
||||||
<DirectoryMatch "<%= @docroot %>\/npm\/[^/]+\/.*">
|
<DirectoryMatch "<%= @docroot %>\/npm\/[^/]+\/.*">
|
||||||
DirectoryIndex index.json
|
DirectoryIndex index.json
|
||||||
AddOutputFilterByType SUBSTITUTE application/json
|
AddOutputFilterByType SUBSTITUTE application/json
|
||||||
|
Loading…
Reference in New Issue
Block a user