* Closure downloads: don't include the product number; it's not needed.

[?]
Feb 23, 2009, 9:34 AM
UHANDRARA2OOOIKBFWPL5ICQH3ECDMWCPVKZXCXXR7E7PJN5SVYQC

Dependencies

  • [2] AFTXA575 * $HYDRA_DATA environment variable.
  • [3] IK53RV4V
  • [4] L5VIEXSC * Allow downloading of build products.
  • [5] 2GK5DOU7 * Downloading closures.
  • [6] VVDQKVNL
  • [7] FSE6N6S3 * Make HEAD requests work when doing Nix closure downloads.
  • [8] 2AIIYGI5 * Show job status and all builds for a project.
  • [9] SHBLLAVH * More global substitution.
  • [10] MOCEUXZA * Support serving products that are directories (such as manuals or
  • [11] JFZNAYJX * Showing releases.
  • [12] YTSIRIMK * Separate job status and all builds pages.
  • [13] JLDUSNUO * Unify rendering of finished and scheduled builds.
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • replacement in src/Hydra/lib/Hydra/Controller/Root.pm at line 121
    [3.4][3.0:27]()
    sub showJobStatus :Local {
    [3.4]
    [3.27]
    sub showJobStatus {
  • replacement in src/Hydra/lib/Hydra/Controller/Root.pm at line 686
    [3.96][3.631:678]()
    my ($self, $c, $buildId, $productnr) = @_;
    [3.96]
    [3.145]
    my ($self, $c, $buildId) = @_;
  • replacement in src/Hydra/lib/Hydra/Controller/Root.pm at line 689
    [3.186][3.186:439]()
    return error($c, "Build with ID $buildId doesn't exist.") if !defined $build;
    my $product = $build->buildproducts->find({productnr => $productnr});
    return error($c, "Build $buildId doesn't have a product $productnr.") if !defined $product;
    [3.186]
    [3.439]
    return error($c, "Build $buildId doesn't exist.") if !defined $build;
  • replacement in src/Hydra/lib/Hydra/Controller/Root.pm at line 691
    [3.440][3.33:119]()
    return error($c, "Product is not a Nix build.") if $product->type ne "nix-build";
    [3.440]
    [3.119]
    return error($c, "Build $buildId cannot be downloaded as a closure.")
    if !$build->buildproducts->find({type => "nix-build"});
  • replacement in src/Hydra/lib/Hydra/Controller/Root.pm at line 694
    [3.120][2.0:112]()
    return error($c, "Path " . $product->path . " is no longer available.") unless isValidPath($product->path);
    [3.120]
    [3.260]
    return error($c, "Path " . $build->outpath . " is no longer available.") unless isValidPath($build->outpath);
  • replacement in src/Hydra/lib/Hydra/Controller/Root.pm at line 697
    [3.303][3.328:373](),[3.328][3.328:373]()
    $c->stash->{storePath} = $product->path;
    [3.303]
    [3.373]
    $c->stash->{storePath} = $build->outpath;
  • replacement in src/Hydra/root/product-list.tt at line 12
    [3.3296][3.3296:3370]()
    <a href="[% c.uri_for('/closure' build.id product.productnr) %]">
    [3.3296]
    [3.3370]
    <a href="[% c.uri_for('/closure' build.id) %]">
  • replacement in src/Hydra/root/product-list.tt at line 26
    [3.3937][3.3937:4050]()
    <pre>$ curl [% c.uri_for('/closure' build.id product.productnr) %] | gunzip | nix-store --import</pre>
    [3.3937]
    [3.4050]
    <pre>$ curl [% c.uri_for('/closure' build.id) %] | gunzip | nix-store --import</pre>