hydra: put contents links into html, add links to files from contents page

[?]
Jan 4, 2011, 12:50 PM
G5ZR3ZVZ2A4WEXI377W5KWOKJOOR7A2RN77L7FRJI2UPVIJYYPBAC

Dependencies

  • [2] OOQ2D3KC * Refactoring: move fetchInput out of hydra_scheduler into a separate
  • [3] VIOVDBSD hydra: nar was replaced, so also move in robots.txt
  • [4] FPK5LF53 * Put the project-related actions in a separate controller. Put the
  • [5] LBNVQXUB * Build the /build stuff in a separate controller.
  • [6] H5REHM3M
  • [7] 5NO7NCKT * Refactoring.
  • [8] CS7T2XFI
  • [9] NUIKDEHL * A quick hack to list the contents of various types of files (RPM,
  • [10] DMXVUAPN * Support showing the contents of ISO images (using isoinfo in
  • [11] XJFHFZCA * Provide some redirects to build products by type so that we can for
  • [12] A52HEFHQ * Allow builds to be restarted (if they failed with a transient error,
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] OC4JSQJV * hydra: robots.txt, also disallow logs for the actual builds

Change contents

  • edit in src/lib/Hydra/Controller/Build.pm at line 206
    [4.191][4.191:192]()
  • edit in src/lib/Hydra/Controller/Build.pm at line 222
    [4.729]
    [4.729]
    my $baseuri = $c->uri_for('/build', $c->stash->{build}->id, 'download', $product->productnr);
    $baseuri .= "/".$product->name if $product->name;
    $res =~ s/(\.\/)($relPathRE)/<a href="$baseuri\/$2">$1$2<\/a>/g;
  • replacement in src/lib/Hydra/Controller/Build.pm at line 265
    [4.1635][4.1635:1719]()
    $c->stash->{'plain'} = { data => $res };
    $c->forward('Hydra::View::Plain');
    [4.1635]
    [4.1406]
    $c->stash->{title} = "Contents of ".$product->path;
    $c->stash->{contents} = "<pre>$res</pre>";
    $c->stash->{template} = 'plain.tt';
  • edit in src/lib/Hydra/Controller/Root.pm at line 148
    [15.97]
    [3.0]
    , uri_for('Build', 'download', ["*"], "*")
  • replacement in src/lib/Hydra/Helper/CatalystUtils.pm at line 209
    [4.218][4.218:294]()
    Readonly::Scalar our $pathCompRE => "(?:[A-Za-z0-9-\+][A-Za-z0-9-\+\._]*)";
    [4.218]
    [2.10487]
    Readonly::Scalar our $pathCompRE => "(?:[A-Za-z0-9-\+\.][A-Za-z0-9-\+\._]*)";