]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake: Switch to fetch2 fetcher code based on the environment variable BBFETCH2
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Jan 2011 18:12:53 +0000 (18:12 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Jan 2011 18:12:53 +0000 (18:12 +0000)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/__init__.py

index 9c57c65f8d45f12525bbb680e29e0ee15880fec2..bf2f0ddd92fd0681a1d731a843b9f1a5e7f32b64 100644 (file)
@@ -78,6 +78,9 @@ if "BBDEBUG" in os.environ:
     if level:
         bb.msg.set_debug_level(level)
 
+if os.environ.get("BBFETCH2"):
+    from bb import fetch2 as fetch
+    sys.modules['bb.fetch'] = sys.modules['bb.fetch2']
 
 # Messaging convenience functions
 def plain(*args):