[OE-core] [PATCH 01/11] recipetool.append: don't choke on a trailing ; in a url

Christopher Larson kergoth at gmail.com
Thu Nov 12 23:39:12 UTC 2015


From: Christopher Larson <chris_larson at mentor.com>

Apparently bb.fetch.URI can't handle this at the moment.

Signed-off-by: Christopher Larson <chris_larson at mentor.com>
---
 scripts/lib/recipetool/append.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/lib/recipetool/append.py b/scripts/lib/recipetool/append.py
index 7fe4115..867d55a 100644
--- a/scripts/lib/recipetool/append.py
+++ b/scripts/lib/recipetool/append.py
@@ -343,6 +343,8 @@ def appendsrc(args, files, rd, extralines=None):
     simplified = {}
     src_uri = rd.getVar('SRC_URI', True).split()
     for uri in src_uri:
+        if uri.endswith(';'):
+            uri = uri[:-1]
         simple_uri = bb.fetch.URI(uri)
         simple_uri.params = {}
         simplified[str(simple_uri)] = uri
-- 
2.2.1




More information about the Openembedded-core mailing list