]> code.ossystems Code Review - openembedded-core.git/commit
archiver.bbclass: Amend the problem for moving tarballs in ${DL_DIR} to ${DEPLOY_DIR...
authorXiaofeng Yan <xiaofeng.yan@windriver.com>
Wed, 11 Apr 2012 06:15:17 +0000 (14:15 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Apr 2012 10:17:07 +0000 (11:17 +0100)
commit40c34087dea6869e5ec9a655980de3c3baa01960
treedebc01916e297a9ccc2bd8a318ca1a8a59907a81
parent24ad7ca9bd99cd6cd11f7d2d49a79fe3521cbcec
archiver.bbclass: Amend the problem for moving tarballs in ${DL_DIR} to ${DEPLOY_DIR}/source when enable archiver

When running "bitbake core-imamge-minmal", the error information like the following  will appear:
ERROR: Error executing a python function in
/buildarea2/yzhao-test/poky-test/meta/recipes-core/zlib/zlib_1.2.6.bb:
IOError: [Errno 2] No such file or directory:
'/buildarea2/yzhao-test/poky-test/build-archive/downloads/zlib-1.2.6.tar.bz2'

An absolute path from variable "file" pointed to tarballs in ${DL_DIR} \
cause this problem. So return base-name of "file" for fixing this bug here.

[YOCTO #2272]

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/archiver.bbclass