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

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