← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~mzibricky/openlp/dbus_check into lp:openlp

 

matysek has proposed merging lp:~mzibricky/openlp/dbus_check into lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)

For more details, see:
https://code.launchpad.net/~mzibricky/openlp/dbus_check/+merge/246607

Add dbus package as required python module for Linux - updated script check_dependencies.
-- 
Your team OpenLP Core is requested to review the proposed merge of lp:~mzibricky/openlp/dbus_check into lp:openlp.
=== modified file 'scripts/check_dependencies.py'
--- scripts/check_dependencies.py	2014-12-31 10:58:13 +0000
+++ scripts/check_dependencies.py	2015-01-15 17:23:09 +0000
@@ -47,6 +47,7 @@
     nose = None
 
 IS_WIN = sys.platform.startswith('win')
+IS_LIN = sys.platform.startswith('lin')
 
 
 VERS = {
@@ -67,6 +68,12 @@
     'icu',
 ]
 
+LINUX_MODULES = [
+    # Optical drive detection.
+    'dbus',
+]
+
+
 MODULES = [
     'PyQt4',
     'PyQt4.QtCore',
@@ -229,6 +236,10 @@
         print('Checking for Windows specific modules...')
         for m in WIN32_MODULES:
             check_module(m)
+    elif IS_LIN:
+        print('Checking for Linux specific modules...')
+        for m in LINUX_MODULES:
+            check_module(m)
     verify_versions()
     print_qt_image_formats()
     print_enchant_backends_and_languages()


Follow ups