diff options
author | 2016-07-01 20:38:27 +0100 | |
---|---|---|
committer | 2016-07-12 14:32:14 +0100 | |
commit | 62b9d63ff618dfea11dfe97115838da6c660b82b (patch) | |
tree | 4f04d65967a3a711879cdcc156e77f7a241b1bf7 | |
parent | 930469271d89e51d83717c6874db2106f652f5ec (diff) | |
download | meta-swupd-62b9d63ff618dfea11dfe97115838da6c660b82b.tar.gz meta-swupd-62b9d63ff618dfea11dfe97115838da6c660b82b.tar.bz2 meta-swupd-62b9d63ff618dfea11dfe97115838da6c660b82b.zip |
Drop use of oe.path.check_output()
This was a copy-and-paste of the check_output() method of the subprocess
module in order to support Python versions prior to 2.7 -- we should just
use the method from subprocess directly.
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
-rw-r--r-- | classes/swupd-image.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/swupd-image.bbclass b/classes/swupd-image.bbclass index 198b1c2..7e00181 100644 --- a/classes/swupd-image.bbclass +++ b/classes/swupd-image.bbclass @@ -169,7 +169,7 @@ def copyxattrtree(src, dst): # tar does not properly copy xattrs when used like this. # See the comment on tar in meta/classes/image_types.bbclass cmd = "tar --xattrs --xattrs-include='*' -cf - -C %s -p . | tar -p --xattrs --xattrs-include='*' -xf - -C %s" % (src, dst) - oe.path.check_output(cmd, shell=True, stderr=subprocess.STDOUT) + subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) # swupd-client expects a bundle subscription to exist for each # installed bundle. This is simply an empty file named for the |