-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replicated copyright change to open embedded, and resolved multi-license ToDo #100
Changes from 3 commits
50a271c
f296d34
1ed712e
f1b310e
bbb8e11
633e210
a16d96f
b133831
4aeaac9
28d6f7e
49b2955
58ba8da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
import hashlib | ||
import os.path | ||
import tarfile | ||
from time import gmtime, strftime | ||
from urllib.request import urlretrieve | ||
|
||
from superflore.exceptions import NoPkgXml | ||
|
@@ -114,7 +115,8 @@ def get_recipe_text(self, distributor, license_text, die_msg=None): | |
Generate the Yocto Recipe, given the distributor line | ||
and the license text. | ||
""" | ||
ret = '# Copyright 2017 ' + distributor + '\n' | ||
ret = "# Copyright " + strftime("%Y", gmtime()) + " " | ||
ret += distributor + "\n" | ||
ret += '# Distributed under the terms of the ' + license_text | ||
ret += ' license\n\n' | ||
|
||
|
@@ -134,18 +136,8 @@ def get_recipe_text(self, distributor, license_text, die_msg=None): | |
self.license = self.license.replace(' ', '-') | ||
ret += 'LICENSE = "' + self.license + '"\n' | ||
elif isinstance(self.license, list): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So I don't think you need to use a join when ret += 'LICENSE = "%s"\n' % getlicense(self.license) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahhh, i didnt see that '[0]' on the end of line 136, thought it was just being made into a list there so i treated it the same, as when it was a list my b! |
||
self.license = self.license[0].replace(' ', '-') | ||
ret += 'LICENSE = "' + self.license + '"\n' | ||
""" | ||
TODO(allenh1): add this functionality | ||
first = True | ||
for lic in self.license: | ||
if not first: | ||
ret += ' ' | ||
first = False | ||
ret += lic | ||
ret += 'LICENSE = "' + ' & '.join(self.license) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is very close. Make sure to call the ' & '.join([getlicense(l) for l in self.license]) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OH yeah, that makes sense, cause the hackyness is gone so every item needs to be taken into account 👍 im on it 👍 |
||
ret += '"\n' | ||
""" | ||
ret += 'LIC_FILES_CHKSUM = "file://package.xml;beginline=' | ||
ret += str(self.license_line) | ||
ret += ';endline=' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shaneallcroft You might update this one as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh heck yeah! I'm on it 👍