summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2015-11-11 14:05:56 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-11-25 07:50:30 +0000
commit4e2c5e171c577f99541dabeb1356355f3cc707f2 (patch)
tree3836c3d5b1c12c187751a76952417ec4e9f0bdfc /scripts
parenta35f79ddd8afe54835ad927b21b8f7cfbd86202a (diff)
downloadpoky-4e2c5e171c577f99541dabeb1356355f3cc707f2.tar.gz
recipetool.append: don't choke on a trailing ; in a url
Apparently bb.fetch.URI can't handle this at the moment. (From OE-Core rev: d3e0a300810251f34932f46daf5263a23846fedd) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/recipetool/append.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/append.py b/scripts/lib/recipetool/append.py
index 7fe411520a..867d55a23b 100644
--- a/scripts/lib/recipetool/append.py
+++ b/scripts/lib/recipetool/append.py
@@ -343,6 +343,8 @@ def appendsrc(args, files, rd, extralines=None):
343 simplified = {} 343 simplified = {}
344 src_uri = rd.getVar('SRC_URI', True).split() 344 src_uri = rd.getVar('SRC_URI', True).split()
345 for uri in src_uri: 345 for uri in src_uri:
346 if uri.endswith(';'):
347 uri = uri[:-1]
346 simple_uri = bb.fetch.URI(uri) 348 simple_uri = bb.fetch.URI(uri)
347 simple_uri.params = {} 349 simple_uri.params = {}
348 simplified[str(simple_uri)] = uri 350 simplified[str(simple_uri)] = uri