summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEdward Cragg <edward.cragg@codethink.co.uk>2016-03-27 11:56:15 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2016-03-31 11:43:55 +0100
commite36043737201a645897d366ba0eb44e91748d16e (patch)
tree0b7fb836cf84b8ef8c15fe91907c37ab71aec947 /scripts
parenta7f12476d4e7b2025a60be58027b67b9e551f31b (diff)
downloadmorph-e36043737201a645897d366ba0eb44e91748d16e.tar.gz
Add local cliapp module
Add a copy of the specific version of the cliapp module required by morph, a known version of which can't otherwise be guaranteed to be available on general Linux systems, or via PyPi. Including the module directly allows for continued development in line with morph, until a time when it may become desirable to move away from dependence on this module. With a local copy of cliapp added to morph, it has been shown that morph is capable of building Baserock images without depending on an existing Baserock system. Change-Id: Iab1f7037c7afff054a2404c0552d9b5e4d2d141f
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-copyright-year5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/check-copyright-year b/scripts/check-copyright-year
index c33c3c52..ef657e44 100755
--- a/scripts/check-copyright-year
+++ b/scripts/check-copyright-year
@@ -19,6 +19,7 @@
from __future__ import print_function
import datetime
+import fnmatch
import re
import sys
@@ -28,7 +29,7 @@ class CheckCopyrightYear(cliapp.Application):
pat = re.compile(r'^[ #/*]*Copyright\s+(\(C\)\s*)'
r'(?P<years>[0-9, -]+)')
- ignore = ['COPYING', 'morphlib/licensecheck.pl']
+ ignore = ['COPYING', 'morphlib/licensecheck.pl', 'cliapp/*']
def add_settings(self):
self.settings.boolean(['verbose', 'v'], 'be more verbose')
@@ -55,7 +56,7 @@ class CheckCopyrightYear(cliapp.Application):
return filenames
def process_input_line(self, filename, line):
- if filename in self.ignore:
+ if any(fnmatch.fnmatch(filename, pattern) for pattern in self.ignore):
return
m = self.pat.match(line)