diff options
author | Xiaofeng Yan <xiaofeng.yan@windriver.com> | 2012-05-16 16:59:45 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-17 21:11:25 +0100 |
commit | 5bda8f33b6763fb519543d0f9e35c970a31d39b8 (patch) | |
tree | 5d15420b68afb029bbd0cc9a43e0a274213147ac /meta | |
parent | dae9ad8a0ba0343e3083694cdcb20f0d02927ad0 (diff) | |
download | openembedded-core-5bda8f33b6763fb519543d0f9e35c970a31d39b8.tar.gz openembedded-core-5bda8f33b6763fb519543d0f9e35c970a31d39b8.tar.bz2 openembedded-core-5bda8f33b6763fb519543d0f9e35c970a31d39b8.zip |
archiver.bbclass: Add two default set for avoiding error when missing assignment
Add two default set(SOURCE_ARCHIVE_LOG_WITH_SCRIPTS, \
SOURCE_ARCHIVE_PACKAGE_TYPE) to archiver.bbclass for avoiding \
building error when forgetting to assign to them.
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/archiver.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 59b58f4403..ac8aa957e3 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass @@ -6,6 +6,8 @@ ARCHIVE_EXCLUDE_FROM ?= ".pc autom4te.cache" ARCHIVE_TYPE ?= "TAR SRPM" DISTRO ?= "poky" PATCHES_ARCHIVE_WITH_SERIES = 'TRUE' +SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= 'logs_with_scripts' +SOURCE_ARCHIVE_PACKAGE_TYPE ?= 'tar' def get_bb_inc(d): '''create a directory "script-logs" including .bb and .inc file in ${WORKDIR}''' @@ -277,7 +279,7 @@ def get_package(d): try: f = open(tarpackage,'r') line = list(set(f.readline().replace('\n','').split())) - except IOError: + except UnboundLocalError,IOError: pass f.close() return line |