appweb.inc: Account for all different uclibc triplets
authorKhem Raj <raj.khem@gmail.com>
Tue, 18 Jan 2011 23:51:21 +0000 (15:51 -0800)
committerKhem Raj <raj.khem@gmail.com>
Tue, 18 Jan 2011 23:51:21 +0000 (15:51 -0800)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/appweb/appweb.inc

index 0f602f7..6c274e6 100644 (file)
@@ -1,4 +1,6 @@
 def get_appweb_host(d, bb):
+    import re
     host = bb.data.getVar('HOST_SYS', d, 1)
-    return host.replace('-linux-uclibc', '-linux')
-
+    if(re.search('-linux-uclibc',host)):
+        host = '-linux'
+    return host