summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass6
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 4f57c3ff4d..0733cddd98 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -1009,15 +1009,13 @@ def base_after_parse(d):
1009 bb.data.setVarFlag('do_fetch', 'depends', depends, d) 1009 bb.data.setVarFlag('do_fetch', 'depends', depends, d)
1010 1010
1011 # Mercurial packages should DEPEND on mercurial-native 1011 # Mercurial packages should DEPEND on mercurial-native
1012 srcuri = bb.data.getVar('SRC_URI', d, 1) 1012 elif "hg://" in srcuri:
1013 if "hg://" in srcuri:
1014 depends = bb.data.getVarFlag('do_fetch', 'depends', d) or "" 1013 depends = bb.data.getVarFlag('do_fetch', 'depends', d) or ""
1015 depends = depends + " mercurial-native:do_populate_staging" 1014 depends = depends + " mercurial-native:do_populate_staging"
1016 bb.data.setVarFlag('do_fetch', 'depends', depends, d) 1015 bb.data.setVarFlag('do_fetch', 'depends', depends, d)
1017 1016
1018 # OSC packages should DEPEND on osc-native 1017 # OSC packages should DEPEND on osc-native
1019 srcuri = bb.data.getVar('SRC_URI', d, 1) 1018 elif "osc://" in srcuri:
1020 if "osc://" in srcuri:
1021 depends = bb.data.getVarFlag('do_fetch', 'depends', d) or "" 1019 depends = bb.data.getVarFlag('do_fetch', 'depends', d) or ""
1022 depends = depends + " osc-native:do_populate_staging" 1020 depends = depends + " osc-native:do_populate_staging"
1023 bb.data.setVarFlag('do_fetch', 'depends', depends, d) 1021 bb.data.setVarFlag('do_fetch', 'depends', depends, d)