diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-08-13 00:11:08 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-08-13 00:26:17 +0530 |
commit | dc3d19ad939805e15cc58cbc6c281f42fb6a641a (patch) | |
tree | bd874b2e5467179226ade90360d52bee65e4c4b9 | |
parent | 43a014e03f47ef6119e67325d9b2a2f422f1209e (diff) |
cerbero: Do not require a license file for proprietary licenses
We can assume in this case that whoever wrote the recipe is either not
redistributing the binaries, or will handle licensing externally.
Fixes https://gitlab.freedesktop.org/gstreamer/cerbero/issues/143
-rw-r--r-- | cerbero/build/recipe.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cerbero/build/recipe.py b/cerbero/build/recipe.py index 484f7cc3..d5d5a933 100644 --- a/cerbero/build/recipe.py +++ b/cerbero/build/recipe.py @@ -26,7 +26,7 @@ import asyncio from functools import reduce from pathlib import Path -from cerbero.enums import LicenseDescription, LibraryType +from cerbero.enums import License, LicenseDescription, LibraryType from cerbero.build import build, source from cerbero.build.filesprovider import FilesProvider, UniversalFilesProvider, UniversalFlatFilesProvider from cerbero.config import Platform @@ -461,6 +461,9 @@ SOFTWARE LICENSE COMPLIANCE.\n\n''' ''' Copy generic licenses from the cerbero licenses datadir. ''' + if lobj == License.Proprietary: + # No license file needed, binaries will not be publicly redistributed + return if lobj.acronym.startswith(('BSD', 'MIT')): msg = '{}.recipe: must specify the license file for BSD and MIT licenses ' \ 'using a dict of the form: ' \ |