SOURCES: hplip-ui-optional.patch (NEW) - add fallback to text-mode...
sls
sls at pld-linux.org
Fri Nov 16 14:00:55 CET 2007
Author: sls Date: Fri Nov 16 13:00:55 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- add fallback to text-mode to hp-setup (stolen from Fedora)
---- Files affected:
SOURCES:
hplip-ui-optional.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/hplip-ui-optional.patch
diff -u /dev/null SOURCES/hplip-ui-optional.patch:1.1
--- /dev/null Fri Nov 16 14:00:55 2007
+++ SOURCES/hplip-ui-optional.patch Fri Nov 16 14:00:50 2007
@@ -0,0 +1,16 @@
+--- 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])
+
================================================================
More information about the pld-cvs-commit
mailing list