summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/spdx_common.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe/spdx_common.py')
-rw-r--r--meta/lib/oe/spdx_common.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/lib/oe/spdx_common.py b/meta/lib/oe/spdx_common.py
index 23a17271d6..e1b26edaaf 100644
--- a/meta/lib/oe/spdx_common.py
+++ b/meta/lib/oe/spdx_common.py
@@ -12,7 +12,7 @@ import re
12import shutil 12import shutil
13 13
14from pathlib import Path 14from pathlib import Path
15 15from dataclasses import dataclass
16 16
17LIC_REGEX = re.compile( 17LIC_REGEX = re.compile(
18 rb"^\W*SPDX-License-Identifier:\s*([ \w\d.()+-]+?)(?:\s+\W*)?$", 18 rb"^\W*SPDX-License-Identifier:\s*([ \w\d.()+-]+?)(?:\s+\W*)?$",
@@ -77,7 +77,11 @@ def process_sources(d):
77 return True 77 return True
78 78
79 79
80Dep = collections.namedtuple("Dep", ["pn", "hashfn", "in_taskhash"]) 80@dataclass(frozen=True)
81class Dep(object):
82 pn: str
83 hashfn: str
84 in_taskhash: bool
81 85
82 86
83def collect_direct_deps(d, dep_task): 87def collect_direct_deps(d, dep_task):