Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[imagetool] detect missing library

and display apt-get install instructions

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information...
commit 2b33162efb3fff66a4e52d9125e198634da8a1cd 1 parent a31e9e1
Christopher Hall hxw authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 host-tools/imagetool/image2header
8 host-tools/imagetool/image2header
View
@@ -26,7 +26,13 @@ import os, sys
import getopt
import os.path
import datetime
-import gd
+
+try:
+ import gd
+except:
+ print 'error: Missing python module: python-gd'
+ print ' sudo apt-get install python-gd'
+ exit(1)
verbose = False
Please sign in to comment.
Something went wrong with that request. Please try again.