summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass9
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 088dd2ac23..98345ce103 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -932,10 +932,11 @@ def check_sanity_everybuild(status, d):
932 with open(checkfile, "w") as f: 932 with open(checkfile, "w") as f:
933 f.write(tmpdir) 933 f.write(tmpdir)
934 934
935 # Check /bin/sh links to dash or bash 935 # If /bin/sh is a symlink, check that it points to dash or bash
936 real_sh = os.path.realpath('/bin/sh') 936 if os.path.islink('/bin/sh'):
937 if not real_sh.endswith('/dash') and not real_sh.endswith('/bash'): 937 real_sh = os.path.realpath('/bin/sh')
938 status.addresult("Error, /bin/sh links to %s, must be dash or bash\n" % real_sh) 938 if not real_sh.endswith('/dash') and not real_sh.endswith('/bash'):
939 status.addresult("Error, /bin/sh links to %s, must be dash or bash\n" % real_sh)
939 940
940def check_sanity(sanity_data): 941def check_sanity(sanity_data):
941 class SanityStatus(object): 942 class SanityStatus(object):