Browse Source

Fix download of debs that don't have "+"

tags/gcc5
falkTX 9 years ago
parent
commit
642fef9928
2 changed files with 12 additions and 0 deletions
  1. +6
    -0
      pool/free/.htaccess
  2. +6
    -0
      pool/non-free/.htaccess

+ 6
- 0
pool/free/.htaccess View File

@@ -1,6 +1,12 @@
Options -Indexes

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\+
RewriteRule ^(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1 [R=301,L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\+(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1\.$2 [R=301,L,QSA]

+ 6
- 0
pool/non-free/.htaccess View File

@@ -1,6 +1,12 @@
Options -Indexes

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\+
RewriteRule ^(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1 [R=301,L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\+(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1\.$2 [R=301,L,QSA]

Loading…
Cancel
Save