test-eval-release: handle ENV{VERBOSE}.

See test-eval-release.sh for details.

svn path=/nixpkgs/trunk/; revision=31824
This commit is contained in:
Yury G. Kudryashov 2012-01-24 19:10:54 +00:00
parent c7dc7f5e87
commit 954c8cdac1
2 changed files with 5 additions and 1 deletions

View file

@ -5,6 +5,7 @@
with import ../../pkgs/lib;
let
trace = if (builtins.getEnv "VERBOSE") == "1" then builtins.trace else (x: y: y);
rel = removeAttrs (import ../../pkgs/top-level/release.nix) [ "tarball" "xbursttools" ];
@ -15,7 +16,7 @@ let
maybe = as: let y = builtins.tryEval (strictAttrs as); in if y.success then y.value else builtins.trace "FAIL" null;
call = attrs: flip mapAttrs attrs
(n: v: /* builtins.trace n */ (
(n: v: trace n (
if builtins.isFunction v then maybe (v { system = "i686-linux"; })
else if builtins.isAttrs v then call v
else null