summaryrefslogtreecommitdiff
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
parent84ff79413a3b56f287f42b8ca1dd2ab194337c42 (diff)
downloadopenembedded-core-f12e71484593039cd58b6e7fadd038b28b05d849.tar.gz
openembedded-core-f12e71484593039cd58b6e7fadd038b28b05d849.tar.bz2
openembedded-core-f12e71484593039cd58b6e7fadd038b28b05d849.zip
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>
-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
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):