diff options
Diffstat (limited to 'hplip-clear-old-state-reasons.patch')
-rw-r--r-- | hplip-clear-old-state-reasons.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/hplip-clear-old-state-reasons.patch b/hplip-clear-old-state-reasons.patch new file mode 100644 index 0000000..0dd0c66 --- /dev/null +++ b/hplip-clear-old-state-reasons.patch @@ -0,0 +1,17 @@ +diff -up hplip-3.12.6/prnt/hpcups/HPCupsFilter.cpp.clear-old-state-reasons hplip-3.12.6/prnt/hpcups/HPCupsFilter.cpp +--- hplip-3.12.6/prnt/hpcups/HPCupsFilter.cpp.clear-old-state-reasons 2012-06-19 11:00:06.000000000 +0200 ++++ hplip-3.12.6/prnt/hpcups/HPCupsFilter.cpp 2012-06-19 11:00:57.822093043 +0200 +@@ -510,6 +510,13 @@ int HPCupsFilter::StartPrintJob(int arg + + signal(SIGTERM, HPCancelJob); + ++/* ++ * Prior to the re-write of hpcups, this filter managed the ++ * marker-supply-low-warning printer state reason. Make sure to ++ * clear that state reason so that upgrades work correctly. ++ */ ++ fputs ("STATE: -marker-supply-low-warning\n", stderr); ++ + cups_raster = cupsRasterOpen(fd, CUPS_RASTER_READ); + + if (cups_raster == NULL) { |