Use hashFile instead of nix-hash

[?]
Feb 23, 2013, 3:07 PM
D4QVCQUSU2W2GWCCI2SLCLM2QO3OYJ5QLGPKXSMZ6XUVIDW6PCTQC

Dependencies

  • [2] PMNWRTGJ Add multiple output support
  • [3] EDRUQ4UK Die TABs die
  • [4] 3XTHEUMP * Implemented the clone feature.
  • [5] INNOEHO6 * Fix getBuildLog for bzip2'd files.
  • [6] FM4O2L4M hydra: if evaluator sees cached build, also add the buildproducts
  • [*] OOQ2D3KC * Refactoring: move fetchInput out of hydra_scheduler into a separate

Change contents

  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 804
    [2.5961][3.417:418](),[3.2216][3.417:418](),[3.418][2.5962:6116](),[2.6116][3.419:420](),[3.2359][3.419:420](),[3.420][2.6117:6277]()
    $sha1 = `nix-hash --flat --type sha1 $path`
    or die "cannot hash $path: $?";;
    chomp $sha1;
    $sha256 = `nix-hash --flat --type sha256 $path`
    or die "cannot hash $path: $?";;
    chomp $sha256;
    [2.5961]
    [2.6277]
    $sha1 = hashFile("sha1", 0, $path);
    $sha256 = hashFile("sha256", 0, $path);