]> code.ossystems Code Review - openembedded-core.git/commitdiff
bb.fetch: add fetch version to distinguish bb.fetch and bb.fetch2
authorYu Ke <ke.yu@intel.com>
Tue, 18 Jan 2011 14:41:23 +0000 (22:41 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Jan 2011 12:25:46 +0000 (12:25 +0000)
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>
bitbake/lib/bb/fetch/__init__.py
bitbake/lib/bb/fetch2/__init__.py

index cd9410d04ca979a6f5973ab356d5c6140f96df53..b452751c7b24ca7651e30c40ede39ae76474ed67 100644 (file)
@@ -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):
index e7752ee33675e434b1cba4467b75b0e0b29437c2..d19f0e738e3ead8e520e1daaf4558b089b8d97bb 100644 (file)
@@ -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):