No need to check for library license
This commit is contained in:
parent
3dd5ecddee
commit
d2c73d9eaa
@ -51,9 +51,8 @@ def cmd_build_snapshot():
|
|||||||
os.rename('%s-%s.tar.bz2' % (name, version), tarball)
|
os.rename('%s-%s.tar.bz2' % (name, version), tarball)
|
||||||
|
|
||||||
def check_licenses(path, license, missing):
|
def check_licenses(path, license, missing):
|
||||||
matchers = { 'LGPL' : [ 'GNU Lesser General Public',
|
matchers = { 'LGPL' : 'GNU Lesser General Public',
|
||||||
'GNU General Library License' ],
|
'GPL' : 'GNU General Public License' }
|
||||||
'GPL' : [ 'GNU General Public License' ] }
|
|
||||||
source_exts = [ '.py', '.c', '.h', '.cpp' ]
|
source_exts = [ '.py', '.c', '.h', '.cpp' ]
|
||||||
|
|
||||||
license_file = os.path.join(path, '.license')
|
license_file = os.path.join(path, '.license')
|
||||||
@ -84,9 +83,7 @@ def check_licenses(path, license, missing):
|
|||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
miss_license = True
|
miss_license = True
|
||||||
|
if source.find(matchers[license]) > 0:
|
||||||
for matcher in matchers[license]:
|
|
||||||
if source.find(matcher) > 0:
|
|
||||||
miss_license = False
|
miss_license = False
|
||||||
|
|
||||||
# Special cases.
|
# Special cases.
|
||||||
|
Loading…
Reference in New Issue
Block a user