Merge pull request #32525 from dtzWill/fix/allowInsecurePredicate

fix use of config-specified allowInsecurePredicate
This commit is contained in:
Orivej Desh 2017-12-09 20:44:00 +00:00 committed by GitHub
commit ea1f6c38a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ let
!allowUnfreePredicate attrs;
allowInsecureDefaultPredicate = x: builtins.elem x.name (config.permittedInsecurePackages or []);
allowInsecurePredicate = x: (config.allowUnfreePredicate or allowInsecureDefaultPredicate) x;
allowInsecurePredicate = x: (config.allowInsecurePredicate or allowInsecureDefaultPredicate) x;
hasAllowedInsecure = attrs:
(attrs.meta.knownVulnerabilities or []) == [] ||