]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - scripts/spdxcheck.py
deb-pkg: generate correct build dependencies
[linux.git] / scripts / spdxcheck.py
index e559c6294c39aef2819637125520a0721b14a95d..4fe392e507fb01f821512912c3c159a5953c71b3 100755 (executable)
@@ -175,7 +175,13 @@ class id_parser(object):
                 self.lines_checked += 1
                 if line.find("SPDX-License-Identifier:") < 0:
                     continue
-                expr = line.split(':')[1].replace('*/', '').strip()
+                expr = line.split(':')[1].strip()
+                # Remove trailing comment closure
+                if line.strip().endswith('*/'):
+                    expr = expr.rstrip('*/').strip()
+                # Special case for SH magic boot code files
+                if line.startswith('LIST \"'):
+                    expr = expr.rstrip('\"').strip()
                 self.parse(expr)
                 self.spdx_valid += 1
                 #