system-config-printer/system-config-printer-nmblookup-failure.patch
Tim Waugh 09775bd93f - Use correct 'location' field for printers added remotely.
- Parse nmblookup failures correctly in troubleshooter.
- Prevent traceback on IPP notification after properties dialog cancelled.
- Fixed handling of incorrect authentication when not using PolicyKit (bug
    #508102).
2009-06-25 17:10:34 +00:00

15 lines
997 B
Diff

diff -U0 system-config-printer-1.1.8/ChangeLog.nmblookup-failure system-config-printer-1.1.8/ChangeLog
diff -up system-config-printer-1.1.8/troubleshoot/CheckPrinterSanity.py.nmblookup-failure system-config-printer-1.1.8/troubleshoot/CheckPrinterSanity.py
--- system-config-printer-1.1.8/troubleshoot/CheckPrinterSanity.py.nmblookup-failure 2009-05-12 10:36:36.000000000 +0100
+++ system-config-printer-1.1.8/troubleshoot/CheckPrinterSanity.py 2009-06-25 17:49:39.628328710 +0100
@@ -99,7 +99,8 @@ class CheckPrinterSanity(Question):
if line.startswith ("querying"):
continue
spc = line.find (' ')
- if spc != -1:
+ if (spc != -1 and
+ not line[spc:].startswith (" failed ")):
# Remember the IP address.
self.answers['remote_server_name'] = line[:spc]
break