diff mbox

[3/4] classes/sdk-image: Fix SO wrapper made for files that are not ELF

Message ID 7ee67c1504b3929b663e667ba2399baf606153f0.1385196868.git.Morten.ThunbergSvendsen@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

Morten Svendsen Nov. 23, 2013, 11:12 a.m. UTC
For example shell scripts will be SO wrapped and not work.
---
 classes/sdk-image.oeclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Esben Haabendal Nov. 28, 2013, 8:37 a.m. UTC | #1
Merged to master, thanks.

/Esben
diff mbox

Patch

diff --git a/classes/sdk-image.oeclass b/classes/sdk-image.oeclass
index b2113f4..044ec9c 100644
--- a/classes/sdk-image.oeclass
+++ b/classes/sdk-image.oeclass
@@ -68,7 +68,9 @@  def image_preprocess_elf_sowrap(d):
                 print "ERROR: file already exists:", os.path.join(dir, path)
                 ok = False
                 continue
-            if is_elf(path) and is_static(path):
+            if not is_elf(path):
+                continue
+            if is_static(path):
                 continue
             os.rename(path, dotpath)
             with open(path, "w") as wrapper: