summaryrefslogtreecommitdiff
path: root/scripts/lib
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:48:12 +0000
commitd3e0a300810251f34932f46daf5263a23846fedd (patch)
treea1513a2e95209e791948cd2d2f601f9a7a24dd26 /scripts/lib
parentd0f3f3a294d509560bd12b93b26eeec65cfee314 (diff)
downloadopenembedded-core-d3e0a300810251f34932f46daf5263a23846fedd.tar.gz
openembedded-core-d3e0a300810251f34932f46daf5263a23846fedd.tar.bz2
openembedded-core-d3e0a300810251f34932f46daf5263a23846fedd.zip
recipetool.append: don't choke on a trailing ; in a url
Apparently bb.fetch.URI can't handle this at the moment. Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib')
-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):
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