[jhbuild] sanitycheck: Check for "sysdeps --install" deps



commit 29d80240def4091dff1ef83db8a389eb228e99ee
Author: Jonh Wendell <jonh wendell redhat com>
Date:   Tue Apr 25 11:57:44 2017 -0300

    sanitycheck: Check for "sysdeps --install" deps
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781726

 jhbuild/commands/sanitycheck.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/commands/sanitycheck.py b/jhbuild/commands/sanitycheck.py
index 7675c7d..2f5755d 100644
--- a/jhbuild/commands/sanitycheck.py
+++ b/jhbuild/commands/sanitycheck.py
@@ -143,6 +143,16 @@ class cmd_sanitycheck(Command):
         if not inpath('xzcat', os.environ['PATH'].split(os.pathsep)):
             uprint(_('%s not found') % 'xzcat')
 
+        # check for "sysdeps --install" deps:
+        try:
+            import glib
+        except:
+            uprint(_('%s not found') % 'pygtk')
+        try:
+            import dbus.glib
+        except:
+            uprint(_('%s not found') % 'dbus-python')
+
     def check_m4(self):
         try:
             not_in_path = []


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]