PATCH: Ubuntu place hpaio in /etc/sane.d/dll.d/hplip, so let hp-check there too

Bug #500924 reported by Mark Purcell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

http://patch-tracker.debian.org/patch/series/view/hplip/3.9.10-4/hp-check_debian

Patch contents
#! /bin/sh /usr/share/dpatch/dpatch-run
## hp-check_debian.dpatch by <email address hidden>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Debian/ Ubuntu place hpaio in /etc/sane.d/dll.d/hplip, so lets check there too

@DPATCH@
diff -urNad hplip-2.8.12~/check.py hplip-2.8.12/check.py
--- hplip-2.8.12~/check.py 2008-12-18 07:41:18.000000000 +1100
+++ hplip-2.8.12/check.py 2009-01-22 14:01:40.000000000 +1100
@@ -693,6 +693,21 @@
                     if 'hpaio' in line:
                         found = True

+ # Debian/ Ubuntu place hpaio in /etc/sane.d/dll.d/hplip, so lets check there too
+
+ if not found:
+ log.info(log.bold("'hpaio' in '/etc/sane.d/dll.d/hplip'..."))
+ try:
+ f = file('/etc/sane.d/dll.d/hplip', 'r')
+ except IOError:
+ log.error("'/etc/sane.d/dll.d/hplip' not found.")
+ num_errors += 1
+ else:
+ found = False
+ for line in f:
+ if 'hpaio' in line:
+ found = True
+
                 if found:
                     log.info("OK, found. SANE backend 'hpaio' is properly set up.")
                 else:

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.