Skip to contentSkip to conversation

package.bbclass: Make sure that when "file" fails, a forced strip will still strip.

PATCH In review Marc Olzheim 1 participant 2 messages Mar 24, 2010 – Apr 1, 2010

lore
Share & tools
lore
#0 lore raw

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
index 062f782..97b2d9b 100644
@@ -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
#1 lore raw

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