checkbashisms: add nicer error when checkbashisms isn't available
authorChris Larson <chris_larson@mentor.com>
Mon, 15 Nov 2010 23:08:45 +0000 (16:08 -0700)
committerChris Larson <chris_larson@mentor.com>
Mon, 15 Nov 2010 23:08:45 +0000 (16:08 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
classes/checkbashisms.bbclass

index 3a38e34..1249c21 100644 (file)
@@ -21,6 +21,8 @@ python do_checkbashisms () {
                 if not errors:
                     errors = True
                 bb.note(str(exc))
+            except oe.process.NotFoundError, exc:
+                bb.fatal("checkbashisms not found, please install it in your PATH")
 
     if errors:
         bb.fatal("bashisms were identified, aborting")