From b54339d63339c99f24845f69f49cd1fe996e6e7c Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 9 May 2013 14:55:04 +0000 Subject: 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 --- meta/classes/package.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/classes/package.bbclass') 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 () { } python split_and_strip_files () { - import stat, errno, subprocess + import stat, errno dvar = d.getVar('PKGD', True) pn = d.getVar('PN', True) @@ -732,7 +732,7 @@ python split_and_strip_files () { # 16 - kernel module def isELF(path): type = 0 - ret, result = subprocess.getstatusoutput("file '%s'" % path) + ret, result = oe.utils.getstatusoutput("file '%s'" % path) if ret: bb.error("split_and_strip_files: 'file %s' failed" % path) -- cgit v1.2.3-54-g00ecf