Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-06-24 10:42:53 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-06-24 10:42:53 (GMT)
commitd2c73d9eaa0fa4d91e28902e8ddf9379bc4b220f (patch)
tree14089bcc4bdd8809c4bb3e5ad3b81971ee5d1187
parent3dd5ecddeecfdd3d8a8492fe4fc763c07627a783 (diff)
No need to check for library license
-rwxr-xr-xmaint-helper.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/maint-helper.py b/maint-helper.py
index 0db859b..10fa578 100755
--- a/maint-helper.py
+++ b/maint-helper.py
@@ -51,9 +51,8 @@ def cmd_build_snapshot():
os.rename('%s-%s.tar.bz2' % (name, version), tarball)
def check_licenses(path, license, missing):
- matchers = { 'LGPL' : [ 'GNU Lesser General Public',
- 'GNU General Library License' ],
- 'GPL' : [ 'GNU General Public License' ] }
+ matchers = { 'LGPL' : 'GNU Lesser General Public',
+ 'GPL' : 'GNU General Public License' }
source_exts = [ '.py', '.c', '.h', '.cpp' ]
license_file = os.path.join(path, '.license')
@@ -84,10 +83,8 @@ def check_licenses(path, license, missing):
f.close()
miss_license = True
-
- for matcher in matchers[license]:
- if source.find(matcher) > 0:
- miss_license = False
+ if source.find(matchers[license]) > 0:
+ miss_license = False
# Special cases.
if source.find('THIS FILE IS GENERATED') > 0: