Package: printconf
Severity: wishlist
Tags: patch

Hi

With the patch in #507666 setup_queue() understands the spooler
argument, which could now be set manually by printconf.
The attached patch does the work for me, can you include it into the
debian version?

Cheers
Steffen
--- /usr/bin/printconf  2008-10-06 03:59:55.000000000 +0200
+++ printconf   2008-12-03 14:23:43.000000000 +0100
@@ -44,10 +44,13 @@
                   action='store_true', help="don't configure any printers")
 parser.add_option('-v', '--verbose', dest='verbose', action='store_true',
                   help="include more detail about what's happening")
+parser.add_option('-s', '--spooler', dest='spooler', action='store',
+                 help="specify the spooler, cups is used as default")
 options, args = parser.parse_args()
 
 dryrun = options.dryrun
 verbose = options.verbose
+spooler = options.spooler
 
 if os.geteuid() and not dryrun:
     print >> sys.stderr, "Please run printconf as root or specify the 
--dry-run option."
@@ -176,7 +179,11 @@
         i += 1
 
     data = {'connect' : device, 'description' : desc, 'name' : qname,
-            'location' : devdesc }
+            'location' : devdesc, 'spooler' : spooler}
+    
+    if spooler:
+       data['spooler'] = spooler
+       
 
     foundppd = False
     if prefdriver == 'postscript' and pdbinfo.get('ppd'):

Reply via email to