archiver.bbclass: DISTRO is not required variable so deal with it

(From OE-Core rev: 3e7f411e6eb428f6d49a6f1a396e70a2bd1ceadc)

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Marcin Juszkiewicz 2012-11-22 11:15:01 +01:00 committed by Richard Purdie
parent 70e654af5d
commit bc5bf6f0a0
1 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,6 @@
ARCHIVE_EXCLUDE_FROM ?= ".pc autom4te.cache"
ARCHIVE_TYPE ?= "tar srpm"
DISTRO ?= "poky"
PATCHES_ARCHIVE_WITH_SERIES = 'yes'
SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= '${@d.getVarFlag('ARCHIVER_MODE', 'log_type') \
if d.getVarFlag('ARCHIVER_MODE', 'log_type') != 'none' else 'logs_with_scripts'}'
@ -491,7 +490,7 @@ def create_diff_gz(d):
f.close()
s=d.getVar('S', True)
distro = d.getVar('DISTRO',True)
distro = d.getVar('DISTRO',True) or ""
dest = s + '/' + distro + '/files'
if not os.path.exists(dest):
bb.mkdirhier(dest)