aboutsummaryrefslogtreecommitdiffstats
path: root/lib/swupd/path.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/swupd/path.py')
-rw-r--r--lib/swupd/path.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/swupd/path.py b/lib/swupd/path.py
index c639236..580d0b6 100644
--- a/lib/swupd/path.py
+++ b/lib/swupd/path.py
@@ -42,6 +42,9 @@ def copyxattrfiles(d, filelist, src, dst, archive=False):
else:
cmd = "tar --xattrs --xattrs-include='*' --no-recursion -cf - -T %s -p | tar -p --xattrs --xattrs-include='*' -xf - -C %s" % (copyfile, dst)
subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
+ output = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
+ if output:
+ bb.fatal('Unexpected output from the following command:\n%s\n%s' % (cmd, output))
os.remove(copyfile)