Move restricted_allows_dynamic_linking into LGPL

Putting the specific condition into the license_kind simplifies the
logic and prepares for a future where licenseclassifier provides
conditions without license_kinds

Bug: 245562496

Test: m droid
Change-Id: I42c26fb3096b40767a68474ed712dbe55ed3f035
This commit is contained in:
Bob Badour
2022-10-28 12:07:20 -07:00
parent 057ad009c7
commit 83a0b8f480

View File

@@ -839,84 +839,84 @@ license_kind {
license_kind { license_kind {
name: "SPDX-license-identifier-LGPL", name: "SPDX-license-identifier-LGPL",
conditions: ["restricted"], conditions: ["restricted_allows_dynamic_linking"],
} }
license_kind { license_kind {
name: "SPDX-license-identifier-LGPL-2.0", name: "SPDX-license-identifier-LGPL-2.0",
conditions: ["restricted"], conditions: ["restricted_allows_dynamic_linking"],
url: "https://spdx.org/licenses/LGPL-2.0.html", url: "https://spdx.org/licenses/LGPL-2.0.html",
} }
license_kind { license_kind {
name: "SPDX-license-identifier-LGPL-2.0+", name: "SPDX-license-identifier-LGPL-2.0+",
conditions: ["restricted"], conditions: ["restricted_allows_dynamic_linking"],
url: "https://spdx.org/licenses/LGPL-2.0+.html", url: "https://spdx.org/licenses/LGPL-2.0+.html",
} }
license_kind { license_kind {
name: "SPDX-license-identifier-LGPL-2.0-only", name: "SPDX-license-identifier-LGPL-2.0-only",
conditions: ["restricted"], conditions: ["restricted_allows_dynamic_linking"],
url: "https://spdx.org/licenses/LGPL-2.0-only.html", url: "https://spdx.org/licenses/LGPL-2.0-only.html",
} }
license_kind { license_kind {
name: "SPDX-license-identifier-LGPL-2.0-or-later", name: "SPDX-license-identifier-LGPL-2.0-or-later",
conditions: ["restricted"], conditions: ["restricted_allows_dynamic_linking"],
url: "https://spdx.org/licenses/LGPL-2.0-or-later.html", url: "https://spdx.org/licenses/LGPL-2.0-or-later.html",
} }
license_kind { license_kind {
name: "SPDX-license-identifier-LGPL-2.1", name: "SPDX-license-identifier-LGPL-2.1",
conditions: ["restricted"], conditions: ["restricted_allows_dynamic_linking"],
url: "https://spdx.org/licenses/LGPL-2.1.html", url: "https://spdx.org/licenses/LGPL-2.1.html",
} }
license_kind { license_kind {
name: "SPDX-license-identifier-LGPL-2.1+", name: "SPDX-license-identifier-LGPL-2.1+",
conditions: ["restricted"], conditions: ["restricted_allows_dynamic_linking"],
url: "https://spdx.org/licenses/LGPL-2.1+.html", url: "https://spdx.org/licenses/LGPL-2.1+.html",
} }
license_kind { license_kind {
name: "SPDX-license-identifier-LGPL-2.1-only", name: "SPDX-license-identifier-LGPL-2.1-only",
conditions: ["restricted"], conditions: ["restricted_allows_dynamic_linking"],
url: "https://spdx.org/licenses/LGPL-2.1-only.html", url: "https://spdx.org/licenses/LGPL-2.1-only.html",
} }
license_kind { license_kind {
name: "SPDX-license-identifier-LGPL-2.1-or-later", name: "SPDX-license-identifier-LGPL-2.1-or-later",
conditions: ["restricted"], conditions: ["restricted_allows_dynamic_linking"],
url: "https://spdx.org/licenses/LGPL-2.1-or-later.html", url: "https://spdx.org/licenses/LGPL-2.1-or-later.html",
} }
license_kind { license_kind {
name: "SPDX-license-identifier-LGPL-3.0", name: "SPDX-license-identifier-LGPL-3.0",
conditions: ["restricted"], conditions: ["restricted_allows_dynamic_linking"],
url: "https://spdx.org/licenses/LGPL-3.0.html", url: "https://spdx.org/licenses/LGPL-3.0.html",
} }
license_kind { license_kind {
name: "SPDX-license-identifier-LGPL-3.0+", name: "SPDX-license-identifier-LGPL-3.0+",
conditions: ["restricted"], conditions: ["restricted_allows_dynamic_linking"],
url: "https://spdx.org/licenses/LGPL-3.0+.html", url: "https://spdx.org/licenses/LGPL-3.0+.html",
} }
license_kind { license_kind {
name: "SPDX-license-identifier-LGPL-3.0-only", name: "SPDX-license-identifier-LGPL-3.0-only",
conditions: ["restricted"], conditions: ["restricted_allows_dynamic_linking"],
url: "https://spdx.org/licenses/LGPL-3.0-only.html", url: "https://spdx.org/licenses/LGPL-3.0-only.html",
} }
license_kind { license_kind {
name: "SPDX-license-identifier-LGPL-3.0-or-later", name: "SPDX-license-identifier-LGPL-3.0-or-later",
conditions: ["restricted"], conditions: ["restricted_allows_dynamic_linking"],
url: "https://spdx.org/licenses/LGPL-3.0-or-later.html", url: "https://spdx.org/licenses/LGPL-3.0-or-later.html",
} }
license_kind { license_kind {
name: "SPDX-license-identifier-LGPLLR", name: "SPDX-license-identifier-LGPLLR",
conditions: ["restricted"], conditions: ["restricted_allows_dynamic_linking"],
url: "https://spdx.org/licenses/LGPLLR.html", url: "https://spdx.org/licenses/LGPLLR.html",
} }