summaryrefslogtreecommitdiff
path: root/meta/classes/archiver.bbclass
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2012-11-22 11:15:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-24 15:12:08 +0000
commit3e7f411e6eb428f6d49a6f1a396e70a2bd1ceadc (patch)
treeaf0a1ac7411a03bc23cd6405a24262d6cedf7223 /meta/classes/archiver.bbclass
parent9ca1c6120fad5dcae1694e8e37331c1b903f1fd0 (diff)
downloadopenembedded-core-3e7f411e6eb428f6d49a6f1a396e70a2bd1ceadc.tar.gz
openembedded-core-3e7f411e6eb428f6d49a6f1a396e70a2bd1ceadc.tar.bz2
openembedded-core-3e7f411e6eb428f6d49a6f1a396e70a2bd1ceadc.zip
archiver.bbclass: DISTRO is not required variable so deal with it
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/archiver.bbclass')
-rw-r--r--meta/classes/archiver.bbclass3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 160a3aad52..a4a2158099 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -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)