Unverified Commit 650eb613 authored by Tristan Ross's avatar Tristan Ross
Browse files

check-meta: add a teams attribute

parent 5bf57e21
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -108,7 +108,10 @@ let

  hasUnfreeLicense = attrs: hasLicense attrs && isUnfree attrs.meta.license;

  hasNoMaintainers = attrs: attrs ? meta.maintainers && (length attrs.meta.maintainers) == 0;
  hasNoMaintainers =
    attrs:
    (attrs ? meta.maintainers && (length attrs.meta.maintainers) == 0)
    && (attrs ? meta.teams && (length attrs.meta.teams) == 0);

  isMarkedBroken = attrs: attrs.meta.broken or false;

@@ -368,6 +371,7 @@ let
        ];
      sourceProvenance = listOf attrs;
      maintainers = listOf (attrsOf any); # TODO use the maintainer type from lib/tests/maintainer-module.nix
      teams = listOf (attrsOf any); # TODO similar to maintainers, use a teams type
      priority = int;
      pkgConfigModules = listOf str;
      inherit platforms;
@@ -534,7 +538,7 @@ let
      {
        valid = "warn";
        reason = "maintainerless";
        errormsg = "has no maintainers";
        errormsg = "has no maintainers or teams";
      }
    # -----
    else