sanity.bbclass: do not fail if /bin/sh is not symlink
authorMarcin Juszkiewicz <hrw@openembedded.org>
Wed, 11 Feb 2009 11:06:45 +0000 (12:06 +0100)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Wed, 11 Feb 2009 17:45:52 +0000 (18:45 +0100)
classes/sanity.bbclass

index da3e630..29624c3 100644 (file)
@@ -112,8 +112,11 @@ def check_sanity(e):
                missing = missing.rstrip(',')
                messages = messages + "Please install following missing utilities: %s\n" % missing
 
-       if os.path.basename(os.readlink('/bin/sh')) == 'dash':
-               messages = messages + "Using dash as /bin/sh causes various subtle build problems, please use bash instead.\n"
+       try:
+           if os.path.basename(os.readlink('/bin/sh')) == 'dash':
+                   messages = messages + "Using dash as /bin/sh causes various subtle build problems, please use bash instead.\n"
+       except:
+               pass
 
        omask = os.umask(022)
        if omask & 0755: