summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/psplash
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-07 13:56:05 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-09 14:06:51 +0100
commite16faa55daca2a87190ce66dc98a37906ecf90af (patch)
tree1a332be79ff1d5a44b399e7180196b9d66ec261d /meta/recipes-core/psplash
parente1b5647d2c84579b65f54aa7ca07a41b1dd9470d (diff)
downloadpoky-e16faa55daca2a87190ce66dc98a37906ecf90af.tar.gz
sanity/patch.py: Remove commands module usage
The commands module is removed in python3. Use the subprocess module instead and the pipes module to replace the mkargs usage. (From OE-Core rev: e2e1dcd74bc45381baccf507c0309dd792229afe) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/psplash')
-rw-r--r--meta/recipes-core/psplash/psplash_git.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/psplash/psplash_git.bb b/meta/recipes-core/psplash/psplash_git.bb
index bbeaa0b3b9..392fada689 100644
--- a/meta/recipes-core/psplash/psplash_git.bb
+++ b/meta/recipes-core/psplash/psplash_git.bb
@@ -71,7 +71,7 @@ ALTERNATIVE_PRIORITY = "100"
71ALTERNATIVE_LINK_NAME[psplash] = "${bindir}/psplash" 71ALTERNATIVE_LINK_NAME[psplash] = "${bindir}/psplash"
72 72
73python do_compile () { 73python do_compile () {
74 import shutil, commands 74 import shutil, subprocess
75 75
76 # Build a separate executable for each splash image 76 # Build a separate executable for each splash image
77 convertscript = "%s/make-image-header.sh" % d.getVar('S', True) 77 convertscript = "%s/make-image-header.sh" % d.getVar('S', True)
@@ -80,7 +80,7 @@ python do_compile () {
80 outputfiles = d.getVar('SPLASH_INSTALL', True).split() 80 outputfiles = d.getVar('SPLASH_INSTALL', True).split()
81 for localfile, outputfile in zip(localfiles, outputfiles): 81 for localfile, outputfile in zip(localfiles, outputfiles):
82 if localfile.endswith(".png"): 82 if localfile.endswith(".png"):
83 outp = commands.getstatusoutput('%s %s POKY' % (convertscript, localfile)) 83 outp = subprocess.getstatusoutput('%s %s POKY' % (convertscript, localfile))
84 print(outp[1]) 84 print(outp[1])
85 fbase = os.path.splitext(os.path.basename(localfile))[0] 85 fbase = os.path.splitext(os.path.basename(localfile))[0]
86 shutil.copyfile("%s-img.h" % fbase, destfile) 86 shutil.copyfile("%s-img.h" % fbase, destfile)