Fixing typos

svn path=/nixpkgs/trunk/; revision=16887
This commit is contained in:
Michael Raskin 2009-08-28 07:07:55 +00:00
parent 8bdc1503c1
commit 3a993e2f8e
1 changed files with 5 additions and 6 deletions

View File

@ -33,16 +33,15 @@ let
(pkgs.lib.getAttrFromPath path pkgs); (pkgs.lib.getAttrFromPath path pkgs);
in testOn job.systems getPkg); in testOn job.systems getPkg);
selectMaintained = attrSet: let selectMaintained = attrSet:
if builtins ? tryEval then if builtins ? tryEval then
pairs = pkgs.lib.concatMap let pairs = pkgs.lib.concatMap
(x: let val = builtins.tryEval (processPackage (builtins.getAttr x attrSet)); in (x: let val = builtins.tryEval (processPackage (builtins.getAttr x attrSet)); in
if val.success && val.value != [] then [{name=x; value=val.value;}] else []) if val.success && val.value != [] then [{name=x; value=val.value;}] else [])
(builtins.attrNames attrSet); (builtins.attrNames attrSet);
else in
[]; builtins.listToAttrs pairs
in else {};
builtins.listToAttrs pairs;
# May fail as much as it wishes, we will catch the error # May fail as much as it wishes, we will catch the error
processPackage = attrSet: processPackage = attrSet:
if attrSet ? recurseForDerivations && attrSet.recurseForDerivations then if attrSet ? recurseForDerivations && attrSet.recurseForDerivations then