aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Fella <nicolas.fella@gmx.de>2021-08-03 00:28:49 +0200
committerNicolas Fella <nicolas.fella@gmx.de>2021-08-05 23:39:58 +0000
commit602e48163b01db0bfcc909295e9a213d9b1b76da (patch)
treea75b78b4a4e75431846e97026411f6a2d1fd247b
parented3a19e64b8225f0edb1dacf764eb03ae88fb6d5 (diff)
downloadextra-cmake-modules-5.85.0-rc1.tar.gz
extra-cmake-modules-5.85.0-rc1.tar.bz2
[ecmcheckoutboundlicense] Ensure that last source file is always processedv5.85.0-rc1v5.85.0
Sometimes reuse spdx does not produce an empty line after the last FileName line and thus the file is never added to the dictionary
-rwxr-xr-xmodules/check-outbound-license.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/check-outbound-license.py b/modules/check-outbound-license.py
index 225181f7..78a24765 100755
--- a/modules/check-outbound-license.py
+++ b/modules/check-outbound-license.py
@@ -128,6 +128,8 @@ if __name__ == '__main__':
licenses = []
f.close()
+ spdxDictionary[fileName] = licenses
+
# read file with list of test files
f = open(args.input, "r")
testfiles = f.readlines()