mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-08-15 22:18:09 +02:00
oe.external: handle invalid FILES_MIRRORS entries
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
@@ -30,7 +30,10 @@ def get_file_search_metadata(d):
|
||||
entry = entry.strip()
|
||||
if not entry:
|
||||
continue
|
||||
pathname, subst = entry.strip().split('|', 1)
|
||||
try:
|
||||
pathname, subst = entry.strip().split('|', 1)
|
||||
except ValueError:
|
||||
bb.warn('Invalid FILES_MIRRORS entry: {0}'.format(entry))
|
||||
mirrors.append(('^' + re.escape(pathname), subst))
|
||||
|
||||
source_paths = [os.path.realpath(p)
|
||||
|
||||
Reference in New Issue
Block a user