summaryrefslogtreecommitdiffstats
path: root/meta/classes/archiver.bbclass
diff options
context:
space:
mode:
authorXiaofeng Yan <xiaofeng.yan@windriver.com>2012-05-16 16:59:45 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-17 21:13:09 +0100
commit9477419d52f30796d529347005b724327bdd6e54 (patch)
treec5ba42b325e0757a3da065e57aa81c2d341fdd22 /meta/classes/archiver.bbclass
parent441c1f8faa82a5ff410a395d9086578f6ac8a93b (diff)
downloadpoky-9477419d52f30796d529347005b724327bdd6e54.tar.gz
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. (From OE-Core rev: 5bda8f33b6763fb519543d0f9e35c970a31d39b8) Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/archiver.bbclass')
-rw-r--r--meta/classes/archiver.bbclass4
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"
6ARCHIVE_TYPE ?= "TAR SRPM" 6ARCHIVE_TYPE ?= "TAR SRPM"
7DISTRO ?= "poky" 7DISTRO ?= "poky"
8PATCHES_ARCHIVE_WITH_SERIES = 'TRUE' 8PATCHES_ARCHIVE_WITH_SERIES = 'TRUE'
9SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= 'logs_with_scripts'
10SOURCE_ARCHIVE_PACKAGE_TYPE ?= 'tar'
9 11
10def get_bb_inc(d): 12def get_bb_inc(d):
11 '''create a directory "script-logs" including .bb and .inc file in ${WORKDIR}''' 13 '''create a directory "script-logs" including .bb and .inc file in ${WORKDIR}'''
@@ -277,7 +279,7 @@ def get_package(d):
277 try: 279 try:
278 f = open(tarpackage,'r') 280 f = open(tarpackage,'r')
279 line = list(set(f.readline().replace('\n','').split())) 281 line = list(set(f.readline().replace('\n','').split()))
280 except IOError: 282 except UnboundLocalError,IOError:
281 pass 283 pass
282 f.close() 284 f.close()
283 return line 285 return line