diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-09 14:55:04 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-09 16:05:08 +0100 |
commit | b54339d63339c99f24845f69f49cd1fe996e6e7c (patch) | |
tree | 73b3da57a66ab4a0f6fa06a479efc5449126342f /meta/classes/package.bbclass | |
parent | d529c11fa512e7f06044378a7ec7137765ea8eb4 (diff) | |
download | poky-b54339d63339c99f24845f69f49cd1fe996e6e7c.tar.gz |
classes/lib: Fix getcmdstatus breakage
I mistakenly thought subprocess had getcmdstatus in python 2. It doesn't so lets
add a wrapper and have this work in both worlds.
(From OE-Core rev: 2253e9f12734c6e6aa489942b5e4628eca1fa29d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r-- | meta/classes/package.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 1dba185b3e..7d0684c95c 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -696,7 +696,7 @@ python fixup_perms () { | |||
696 | } | 696 | } |
697 | 697 | ||
698 | python split_and_strip_files () { | 698 | python split_and_strip_files () { |
699 | import stat, errno, subprocess | 699 | import stat, errno |
700 | 700 | ||
701 | dvar = d.getVar('PKGD', True) | 701 | dvar = d.getVar('PKGD', True) |
702 | pn = d.getVar('PN', True) | 702 | pn = d.getVar('PN', True) |
@@ -732,7 +732,7 @@ python split_and_strip_files () { | |||
732 | # 16 - kernel module | 732 | # 16 - kernel module |
733 | def isELF(path): | 733 | def isELF(path): |
734 | type = 0 | 734 | type = 0 |
735 | ret, result = subprocess.getstatusoutput("file '%s'" % path) | 735 | ret, result = oe.utils.getstatusoutput("file '%s'" % path) |
736 | 736 | ||
737 | if ret: | 737 | if ret: |
738 | bb.error("split_and_strip_files: 'file %s' failed" % path) | 738 | bb.error("split_and_strip_files: 'file %s' failed" % path) |