summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorYu Ke <ke.yu@intel.com>2011-01-18 22:41:23 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-25 12:25:46 +0000
commitf12e71484593039cd58b6e7fadd038b28b05d849 (patch)
treed269312d2c77c10b5e90d04a82e0f782216a9a20 /bitbake
parent84ff79413a3b56f287f42b8ca1dd2ab194337c42 (diff)
downloadpoky-f12e71484593039cd58b6e7fadd038b28b05d849.tar.gz
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 <ke.yu@intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py2
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
2 files changed, 4 insertions, 0 deletions
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
33from bb import persist_data 33from bb import persist_data
34from bb import utils 34from bb import utils
35 35
36__version__ = "1"
37
36logger = logging.getLogger("BitBake.Fetch") 38logger = logging.getLogger("BitBake.Fetch")
37 39
38class MalformedUrl(Exception): 40class 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
33from bb import persist_data 33from bb import persist_data
34from bb import utils 34from bb import utils
35 35
36__version__ = "2"
37
36logger = logging.getLogger("BitBake.Fetch") 38logger = logging.getLogger("BitBake.Fetch")
37 39
38class MalformedUrl(Exception): 40class MalformedUrl(Exception):