aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-01-25 13:38:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-04 23:35:04 +0000
commit91583704383aef3d4742630380fd3f1d38c4b00a (patch)
tree086d52d20d1dbfa74316a34cc7a614abb5b263f9 /meta/classes/base.bbclass
parent4c9d063c72cc021ee22472783f74d73078671813 (diff)
downloadopenembedded-core-contrib-91583704383aef3d4742630380fd3f1d38c4b00a.tar.gz
meta: add ASSUME_PROVIDED dependency on wget-native for http fetches
For clarity and consistency, add a dependency on wget-native for any URIs that will be fetched using the wget fetcher, and add wget-native to ASSUME_PROVIDED. Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index d68ffbe848..d4b11bc7a8 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -553,6 +553,10 @@ python () {
for uri in srcuri.split():
(scheme, _ , path) = bb.fetch.decodeurl(uri)[:3]
+ # HTTP/FTP use the wget fetcher
+ if scheme in ("http", "https", "ftp"):
+ d.appendVarFlag('do_fetch', 'depends', ' wget-native:do_populate_sysroot')
+
# Svn packages should DEPEND on subversion-native
if scheme == "svn":
d.appendVarFlag('do_fetch', 'depends', ' subversion-native:do_populate_sysroot')