From 120e40afbe81da425f1b60c4d11b624719bf5911 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Apr 19 2017 11:56:39 +0000 Subject: differentiate module and content licenses The module license only covers the module metadata, SPEC files, etc. Sets this to "MIT" which is the default content license in Fedora. Use the license of the package for content instead. --- diff --git a/modularity/module_generator.py b/modularity/module_generator.py index 0a70669..0e0a966 100644 --- a/modularity/module_generator.py +++ b/modularity/module_generator.py @@ -33,7 +33,12 @@ class ModuleGenerator(object): self.mmd.summary = str(self.pkg.summary) self.mmd.description = str(self.pkg.description) - self.mmd.add_module_license(str(self.pkg.license)) + + # Default license for the module metadata, same as default Fedora + # content license. + self.mmd.add_module_license("MIT") + + self.mmd.add_content_license(str(self.pkg.license)) for pkg in self.build_deps.intersection(self.run_deps): self.mmd.components.add_rpm(pkg, "Build and runtime dependency.")