stdenv/check-meta: don't infrec on unsupported platforms

This commit is contained in:
K900 2024-03-30 14:30:20 +03:00
parent d72da1d01a
commit ba79149c66

View File

@ -424,7 +424,7 @@ let
else if !allowBroken && attrs.meta.broken or false then
{ valid = "no"; reason = "broken"; errormsg = "is marked as broken"; }
else if !allowUnsupportedSystem && hasUnsupportedPlatform attrs then
let toPretty = toPretty {
let toPretty' = toPretty {
allowPrettyValues = true;
indent = " ";
};
@ -432,8 +432,8 @@ let
errormsg = ''
is not available on the requested hostPlatform:
hostPlatform.config = "${hostPlatform.config}"
package.meta.platforms = ${toPretty (attrs.meta.platforms or [])}
package.meta.badPlatforms = ${toPretty (attrs.meta.badPlatforms or [])}
package.meta.platforms = ${toPretty' (attrs.meta.platforms or [])}
package.meta.badPlatforms = ${toPretty' (attrs.meta.badPlatforms or [])}
'';
}
else if !(hasAllowedInsecure attrs) then