diff options
-rw-r--r-- | scripts/lib/devtool/upgrade.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py index c57015eb40..39a1910a49 100644 --- a/scripts/lib/devtool/upgrade.py +++ b/scripts/lib/devtool/upgrade.py | |||
@@ -336,7 +336,10 @@ def _create_new_recipe(newpv, md5, sha256, srcrev, srcbranch, srcsubdir_old, src | |||
336 | replacing = True | 336 | replacing = True |
337 | new_src_uri = [] | 337 | new_src_uri = [] |
338 | for entry in src_uri: | 338 | for entry in src_uri: |
339 | scheme, network, path, user, passwd, params = bb.fetch2.decodeurl(entry) | 339 | try: |
340 | scheme, network, path, user, passwd, params = bb.fetch2.decodeurl(entry) | ||
341 | except bb.fetch2.MalformedUrl as e: | ||
342 | raise DevtoolError("Could not decode SRC_URI: {}".format(e)) | ||
340 | if replacing and scheme in ['git', 'gitsm']: | 343 | if replacing and scheme in ['git', 'gitsm']: |
341 | branch = params.get('branch', 'master') | 344 | branch = params.get('branch', 'master') |
342 | if rd.expand(branch) != srcbranch: | 345 | if rd.expand(branch) != srcbranch: |