Blame SOURCES/hplip-clear-old-state-reasons.patch

a389ae
diff -up hplip-3.12.6/prnt/hpcups/HPCupsFilter.cpp.clear-old-state-reasons hplip-3.12.6/prnt/hpcups/HPCupsFilter.cpp
a389ae
--- hplip-3.12.6/prnt/hpcups/HPCupsFilter.cpp.clear-old-state-reasons	2012-06-19 11:00:06.000000000 +0200
a389ae
+++ hplip-3.12.6/prnt/hpcups/HPCupsFilter.cpp	2012-06-19 11:00:57.822093043 +0200
a389ae
@@ -510,6 +510,13 @@ int HPCupsFilter::StartPrintJob(int  arg
a389ae
 
a389ae
     signal(SIGTERM, HPCancelJob);
a389ae
 
a389ae
+/*
a389ae
+ *  Prior to the re-write of hpcups, this filter managed the
a389ae
+ *  marker-supply-low-warning printer state reason.  Make sure to
a389ae
+ *  clear that state reason so that upgrades work correctly.
a389ae
+ */
a389ae
+    fputs ("STATE: -marker-supply-low-warning\n", stderr);
a389ae
+
a389ae
     cups_raster = cupsRasterOpen(fd, CUPS_RASTER_READ);
a389ae
 
a389ae
     if (cups_raster == NULL) {