]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
fetch2: fix pickle issues while switching from master to krogoth
authorMaxin B. John <maxin.john@intel.com>
Fri, 29 Jul 2016 08:23:35 +0000 (11:23 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Jul 2016 08:52:37 +0000 (09:52 +0100)
commitcc67800f279fb211ee3bb4ea7009fdbb82973b02
treec674b93b504fa0b95b68ff449b2684348d22ef09
parent508112793ee7ace613f07695222997309a2ca58f
fetch2: fix pickle issues while switching from master to krogoth

While switching from master to krogoth build with a common download directory,
got a large number of warnings like the one listed below:

WARNING: freetype-2.6.3-r0 do_fetch: Couldn't load checksums from
donestamp /home/maxin/downloads/freetype-2.6.3.tar.bz2.done: ValueError
(msg: unsupported pickle protocol: 4)

These warnings are caused by the difference in pickle module
implementation in python3(master) and python2(krogoth). Python2 supports
3 different protocols (0, 1, 2) and pickle.HIGHEST_PROTOCOL is 2 where as
Python3 supports 5 different protocols (0, 1, 2, 3, 4) and
pickle.HIGHEST_PROTOCOL is obviously 4.

My suggestion is to use 2 since it is backward compatible with python2
(all the supported distros for krogoth provides python2 which supports
pickle protocol version 2)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/__init__.py