diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/devupstream.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/devupstream.bbclass b/meta/classes/devupstream.bbclass index facc46f3af..ba6dc4136c 100644 --- a/meta/classes/devupstream.bbclass +++ b/meta/classes/devupstream.bbclass | |||
@@ -30,10 +30,11 @@ python devupstream_virtclass_handler () { | |||
30 | # Develpment releases are never preferred by default | 30 | # Develpment releases are never preferred by default |
31 | d.setVar("DEFAULT_PREFERENCE", "-1") | 31 | d.setVar("DEFAULT_PREFERENCE", "-1") |
32 | 32 | ||
33 | uri = bb.fetch2.URI(d.getVar("SRC_URI").split()[0]) | 33 | src_uri = d.getVar("SRC_URI:class-devupstream") or d.getVar("SRC_URI") |
34 | uri = bb.fetch2.URI(src_uri.split()[0]) | ||
34 | 35 | ||
35 | if uri.scheme == "git" and not d.getVar("S:class-devupstream"): | 36 | if uri.scheme == "git" and not d.getVar("S:class-devupstream"): |
36 | d.setVar("S:class-devupstream", "${WORKDIR}/git") | 37 | d.setVar("S", "${WORKDIR}/git") |
37 | 38 | ||
38 | # Modify the PV if the recipe hasn't already overridden it | 39 | # Modify the PV if the recipe hasn't already overridden it |
39 | pv = d.getVar("PV") | 40 | pv = d.getVar("PV") |