package.bbclass: Make sure that when "file" fails, a forced strip will still strip.
PATCH 1/1 package.bbclass: Make sure that when "file" fails, a forced strip will still strip.
From: Marc Olzheim <[email protected]>
--- classes/package.bbclass | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
classes/package.bbclass +1 -2
@@ -160,8 +160,7 @@ def runstrip(file, d): if ret: bb.error("runstrip: 'file %s' failed (forced strip)" % file) - - if "not stripped" not in result: + elif "not stripped" not in result: bb.debug(1, "runstrip: skip %s" % file) return 0
Signature · 1 line
1.6.3.3
Of course this only matters when something else is wrong, but the existing code that tries to check the output of a failed "file" command is even more wrong. ;-)
Marc