summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-10 18:12:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-10 18:12:53 +0000
commitaf06e4a8efbcaff657c397c34f2cb893d2d7f7f7 (patch)
tree6e3bcb6e996a19301c691fddea086eb9a75d2402 /bitbake
parentc64b445f38179a117d39319f762f9dc2435da0ea (diff)
downloadpoky-af06e4a8efbcaff657c397c34f2cb893d2d7f7f7.tar.gz
bitbake: Switch to fetch2 fetcher code based on the environment variable BBFETCH2
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py
index 9c57c65f8d..bf2f0ddd92 100644
--- a/bitbake/lib/bb/__init__.py
+++ b/bitbake/lib/bb/__init__.py
@@ -78,6 +78,9 @@ if "BBDEBUG" in os.environ:
78 if level: 78 if level:
79 bb.msg.set_debug_level(level) 79 bb.msg.set_debug_level(level)
80 80
81if os.environ.get("BBFETCH2"):
82 from bb import fetch2 as fetch
83 sys.modules['bb.fetch'] = sys.modules['bb.fetch2']
81 84
82# Messaging convenience functions 85# Messaging convenience functions
83def plain(*args): 86def plain(*args):