From: Richard Purdie Date: Mon, 10 Jan 2011 18:12:53 +0000 (+0000) Subject: bitbake: Switch to fetch2 fetcher code based on the environment variable BBFETCH2 X-Git-Tag: 2011-1~2943 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=af06e4a8efbcaff657c397c34f2cb893d2d7f7f7;p=openembedded-core.git bitbake: Switch to fetch2 fetcher code based on the environment variable BBFETCH2 Signed-off-by: Richard Purdie --- 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: 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):