From b06f652baa8ebcd3856972917fa0cad9ea1d08a3 Mon Sep 17 00:00:00 2001 From: Szymon Siwek Date: Fri, 16 Nov 2007 13:00:50 +0000 Subject: [PATCH] - add fallback to text-mode to hp-setup (stolen from Fedora) Changed files: hplip-ui-optional.patch -> 1.1 --- hplip-ui-optional.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hplip-ui-optional.patch diff --git a/hplip-ui-optional.patch b/hplip-ui-optional.patch new file mode 100644 index 0000000..897a236 --- /dev/null +++ b/hplip-ui-optional.patch @@ -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]) + -- 2.44.0