From: Yu Ke Date: Tue, 18 Jan 2011 14:41:23 +0000 (+0800) Subject: bb.fetch: add fetch version to distinguish bb.fetch and bb.fetch2 X-Git-Tag: 2011-1~2713 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=f12e71484593039cd58b6e7fadd038b28b05d849;p=openembedded-core.git bb.fetch: add fetch version to distinguish bb.fetch and bb.fetch2 there is case that we need to distingush bb.fetch and bb.fetch2, and use different API for bb.fetch and bb.fetch2. so it is necessary to add version info for distinguish purpose Signed-off-by: Yu Ke --- diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index cd9410d04c..b452751c7b 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py @@ -33,6 +33,8 @@ from bb import data from bb import persist_data from bb import utils +__version__ = "1" + logger = logging.getLogger("BitBake.Fetch") class MalformedUrl(Exception): diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index e7752ee336..d19f0e738e 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py @@ -33,6 +33,8 @@ from bb import data from bb import persist_data from bb import utils +__version__ = "2" + logger = logging.getLogger("BitBake.Fetch") class MalformedUrl(Exception):