hplip/hplip-ui-optional.patch
Tim Waugh 9fb915ebe1 - Moved hp-setup back to the base package, and put code in
utils.checkPyQtImport() to check for the gui sub-package as well as
    PyQt (bug #243273).
2007-06-11 14:53:16 +00:00

17 lines
528 B
Diff

--- hplip-1.7.2/base/utils.py.ui-optional 2007-02-07 19:21:31.000000000 +0000
+++ hplip-1.7.2/base/utils.py 2007-06-11 14:29:16.000000000 +0100
@@ -644,6 +644,13 @@
log.error("PyQt not installed. GUI not available. Exiting.")
return False
+ # hplip-gui sub-package (Fedora)
+ try:
+ import ui
+ except ImportError:
+ log.error("hplip-gui not installed. GUI not available. Exiting.")
+ return False
+
# check version of Qt
qtMajor = int(qt.qVersion().split('.')[0])