diff options
-rw-r--r-- | meta/lib/oe/package.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py index 8bc56c6e88..947a97785a 100644 --- a/meta/lib/oe/package.py +++ b/meta/lib/oe/package.py @@ -34,14 +34,14 @@ def runstrip(arg): stripcmd = "'%s' %s '%s' -o '%s.tmp' && chown --reference='%s' '%s.tmp' && mv '%s.tmp' '%s'" % (strip, extraflags, file, file, file, file, file, file) bb.debug(1, "runstrip: %s" % stripcmd) - ret = subprocess.call(stripcmd, shell=True) + try: + output = subprocess.check_output(stripcmd, stderr=subprocess.STDOUT, shell=True) + except subprocess.CalledProcessError as e: + bb.error("runstrip: '%s' strip command failed with %s (%s)" % (stripcmd, e.returncode, e.output)) if newmode: os.chmod(file, origmode) - if ret: - bb.error("runstrip: '%s' strip command failed" % stripcmd) - return |