* Escape `+', `=' and `?' in NAR URIS in manifests. Otherwise you get

[?]
Feb 9, 2010, 4:11 PM
IGZ3IFSGH2TX6DVWCRBAV4IYQAUHPEKEGDJQCLNICYR6GNIC25EQC

Dependencies

  • [2] BDSD2JLV * Speed up manifest generation.
  • [3] IWVA2P2Y * Generate manifests on demand. Next step: generate NAR archives on
  • [4] ZRBXLKFO
  • [5] Y35C6GHH * One-click installs.

Change contents

  • edit in src/lib/Hydra/View/NixManifest.pm at line 25
    [2.806]
    [3.1213]
    # Escape the characters that are allowed to appear in a Nix
    # path name but have special meaning in a URI.
    my $escaped = $path;
    $escaped =~ s/\+/%2b/g;
    $escaped =~ s/\=/%3d/g;
    $escaped =~ s/\?/%3f/g;
  • replacement in src/lib/Hydra/View/NixManifest.pm at line 33
    [3.1351][3.456:504]()
    my $url = $c->stash->{narBase} . $path;
    [3.1222]
    [3.590]
    my $url = $c->stash->{narBase} . $escaped;