Skip to content

Commit

Permalink
[tsmeta] Fixup parsing for (> 1) instance of '://' in URIs.
Browse files Browse the repository at this point in the history
Reference:

"layer": "meta-oe",
"recipe": "recipes-support/onig/onig_5.9.6.bb"
"src_uri": [
    "https://web.archive.org/web/20150807014439/http://www.geocities.jp/kosako3/oniguruma/archive/onig-5.9.6.tar.gz",
    ...
]
  • Loading branch information
mochel-timesys committed Jun 20, 2019
1 parent c43bde1 commit a919c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/tsmeta.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def tsmeta_get_src(d):
for uri_desc in src_dict["src_uri"]:
uri_uri = uri_desc.split(";")[0]

(uri_type, uri_spec) = uri_desc.split("://")
(uri_type, uri_spec) = uri_desc.split("://", 1)
uri_path = uri_spec.split(";")[0]

if is_patch(uri_spec):
Expand Down

0 comments on commit a919c50

Please sign in to comment.