Package: python-foomatic
Severity: wishlist
Tags: patch

Hi

I needed to manually specify the spooler, because I couldn't rely on
the system configuration file. Therefore, I needed the patch below
added to foomatic.py so that it understands a spooler argument
(for example given by printconf).

Cheers
Steffen
--- /usr/share/pyshared/foomatic/foomatic.py    2008-06-01 01:19:59.000000000 
+0200
+++ foomatic.py 2008-12-03 13:25:23.000000000 +0100
@@ -299,7 +299,10 @@
         args += [('--ppd', 'ppdfile')]
     else:
         args += [('-p', 'printer'), ('-d', 'driver')]
-    
+
+    if queueinfo.get('spooler'):
+       args += [('-s', 'spooler')]   
+ 
     argstr = ' '.join([ a + mkarg(queueinfo[b] or '') for (a,b) in args])
     command = 'foomatic-configure -f -q -w '+argstr #+' 2>/dev/null'
     if DEBUG:

Reply via email to