Skip to content
  • Dan McGee's avatar
    Segment the upload directory by package name prefix · 9a79d210
    Dan McGee authored
    
    
    This implements the following scheme:
    
    * /packages/cower/ --> /packages/co/cower/
    * /packages/j/     --> /packages/j/j/
    * /packages/zqy/   --> /packages/zq/zqy/
    
    We take up to the first two characters of each package name as a
    intermediate subdirectory, and then the full package name lives
    underneath that. Shorter named packages live in a single letter
    directory.
    
    Why, you ask? Well because earlier today the AUR hit 32,000 entries in
    the unsupported/ directory, making new package uploads impossible. While
    some might argue we shouldn't have so many damn packages in the repos,
    we should be able to handle this case.
    
    Why two characters instead of one? Our two biggest two-char groups, 'pe'
    and 'py', both start with 'p', and have nearly 2000 packages each. Go
    Python and Perl.
    
    Still needed is a "move the existing data" script, as well as a set of
    rewrite rules for those wishing to preserve backward compatible URLs for
    any helper programs doing the wrong thing and relying on them.
    
    Signed-off-by: default avatarDan McGee <dan@archlinux.org>
    Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
    9a79d210