summaryrefslogtreecommitdiff
path: root/recipes-ti
diff options
context:
space:
mode:
authorStefan Müller-Klieser <s.mueller-klieser@phytec.de>2015-02-12 14:53:06 +0100
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2015-02-12 14:53:06 +0100
commitf4798189163629a18923e284c74c4962ebef4ea7 (patch)
tree7ce0a3430d27998121fa5afbb660a99500e4ccce /recipes-ti
parent39fc2a927884b131d6c7438864c7eb66b0b9e14a (diff)
downloadmeta-phytec-f4798189163629a18923e284c74c4962ebef4ea7.tar.bz2
meta-phytec-f4798189163629a18923e284c74c4962ebef4ea7.zip
ti-eula-unpack.in: add simple check
Do a simple check if at least some files got extracted, to make some basic errors visible. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Diffstat (limited to 'recipes-ti')
-rw-r--r--recipes-ti/includes/ti-eula-unpack.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-ti/includes/ti-eula-unpack.inc b/recipes-ti/includes/ti-eula-unpack.inc
index db29b46..af510ea 100644
--- a/recipes-ti/includes/ti-eula-unpack.inc
+++ b/recipes-ti/includes/ti-eula-unpack.inc
@@ -65,6 +65,13 @@ python ti_bin_do_unpack() {
f.write(cmd+'\n');
f.close()
+ # as we don't know if the installer really did his work, check manually if some extracted
+ # files can be found
+ S = bb.data.getVar('S', localdata, True)
+ files = os.listdir(S)
+ if len(files) < 4:
+ bb.fatal("It seems the TI installer did not work for some reason. Check for it manually at: %s." % S)
+
# Expand the tarball that was created if required
tarfile = bb.data.getVar('TARFILE', localdata)
if bool(tarfile) == True: