1
diff -Nur -x '*.orig' -x '*~' system-config-printer-1.1.3+git20090218/system-config-printer.py system-config-printer-1.1.3+git20090218.new/system-config-printer.py
2
--- system-config-printer-1.1.3+git20090218/system-config-printer.py 2009-04-20 14:17:50.000000000 +0200
3
+++ system-config-printer-1.1.3+git20090218.new/system-config-printer.py 2009-04-20 14:18:24.000000000 +0200
5
button_clicked = dialog.run()
7
if (button_clicked == 1):
8
- cmds = ("gksu -- hp-plugin -u",
9
+ cmds = ("if python -c 'import PyQt4.QtGui' 2>/dev/null; then gksu -- hp-plugin -u; else exit 255; fi",
10
"gksu -- xterm -T 'HPLIP Plugin Installation' -sb -rightbar -e hp-plugin -i")
13
@@ -4676,10 +4676,6 @@
16
install_result = p.returncode
17
- for line in stderr.split ("\n"):
18
- if line.find ("PyQt not installed") >= 0:
19
- install_result = 255
21
if install_result != 255:
23
if install_result == 0: