From 226a8616f8d52da5dedf0174967bc5c30df31aa1 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Fri, 12 Oct 2018 22:35:51 +0500 Subject: [PATCH] oe.external: handle invalid FILES_MIRRORS entries Signed-off-by: Christopher Larson --- lib/oe/external.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/oe/external.py b/lib/oe/external.py index e03666c..830bd90 100644 --- a/lib/oe/external.py +++ b/lib/oe/external.py @@ -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)