summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/crate.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/crate.py b/bitbake/lib/bb/fetch2/crate.py
index a7021e5b36..2b8b6bc7a1 100644
--- a/bitbake/lib/bb/fetch2/crate.py
+++ b/bitbake/lib/bb/fetch2/crate.py
@@ -59,11 +59,11 @@ class Crate(Wget):
59 # version is expected to be the last token 59 # version is expected to be the last token
60 # but ignore possible url parameters which will be used 60 # but ignore possible url parameters which will be used
61 # by the top fetcher class 61 # by the top fetcher class
62 version, _, _ = parts[len(parts) -1].partition(";") 62 version = parts[-1].split(";")[0]
63 # second to last field is name 63 # second to last field is name
64 name = parts[len(parts) - 2] 64 name = parts[-2]
65 # host (this is to allow custom crate registries to be specified 65 # host (this is to allow custom crate registries to be specified
66 host = '/'.join(parts[2:len(parts) - 2]) 66 host = '/'.join(parts[2:-2])
67 67
68 # if using upstream just fix it up nicely 68 # if using upstream just fix it up nicely
69 if host == 'crates.io': 69 if host == 'crates.io':