diff options
author | Yu Ke <ke.yu@intel.com> | 2011-01-18 22:41:23 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-25 12:25:46 +0000 |
commit | f12e71484593039cd58b6e7fadd038b28b05d849 (patch) | |
tree | d269312d2c77c10b5e90d04a82e0f782216a9a20 /bitbake | |
parent | 84ff79413a3b56f287f42b8ca1dd2ab194337c42 (diff) | |
download | poky-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__.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 2 |
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 | |||
33 | from bb import persist_data | 33 | from bb import persist_data |
34 | from bb import utils | 34 | from bb import utils |
35 | 35 | ||
36 | __version__ = "1" | ||
37 | |||
36 | logger = logging.getLogger("BitBake.Fetch") | 38 | logger = logging.getLogger("BitBake.Fetch") |
37 | 39 | ||
38 | class MalformedUrl(Exception): | 40 | 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 | |||
33 | from bb import persist_data | 33 | from bb import persist_data |
34 | from bb import utils | 34 | from bb import utils |
35 | 35 | ||
36 | __version__ = "2" | ||
37 | |||
36 | logger = logging.getLogger("BitBake.Fetch") | 38 | logger = logging.getLogger("BitBake.Fetch") |
37 | 39 | ||
38 | class MalformedUrl(Exception): | 40 | class MalformedUrl(Exception): |