Fix nobodyMaintains check
This commit is contained in:
parent
76af140204
commit
30caf6f8be
|
@ -27,9 +27,9 @@
|
|||
else if ! hasAttr "maintainers" drv.meta then []
|
||||
else drv.meta.maintainers;
|
||||
nobodyMaintains = drv:
|
||||
if ! hasAttr "meta" drv then true
|
||||
else if ! hasAttr "maintainers" drv.meta then true
|
||||
else (length drv.meta.maintainers) == 0;
|
||||
hasAttr "meta" drv &&
|
||||
hasAttr "maintainers" drv.meta &&
|
||||
(length drv.meta.maintainers) == 0;
|
||||
maintainerToString = m: "${m.name} (${m.email})";
|
||||
drvToString = drv: "${drv.name}";
|
||||
};
|
||||
|
@ -52,7 +52,7 @@
|
|||
drvNames = map drvToString drvsNoMain;
|
||||
drvNamesList = writeText "no-maintainers" (concatLines drvNames);
|
||||
uniqNames = runCommandLocal "no-maintainers.txt" {} ''
|
||||
<${drvNamesList} sort | uniq -c > $out
|
||||
<${drvNamesList} sort -u > $out
|
||||
'';
|
||||
in uniqNames;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue