[oe-commits] Marcin Juszkiewicz : sanity.bbclass: do not fail if /bin/sh is not symlink
GIT User account
git at amethyst.openembedded.net
Wed Feb 11 17:46:26 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 625acc75389ad2c94499e6cc168f4d008de6d4cc
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=625acc75389ad2c94499e6cc168f4d008de6d4cc
Author: Marcin Juszkiewicz <hrw at openembedded.org>
Date: Wed Feb 11 12:06:45 2009 +0100
sanity.bbclass: do not fail if /bin/sh is not symlink
---
classes/sanity.bbclass | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index da3e630..29624c3 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -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:
More information about the Openembedded-commits
mailing list