rpms/hplip/devel hplip-clear-old-state-reasons.patch, NONE, 1.1 hplip.spec, 1.273, 1.274

Tim Waugh twaugh at fedoraproject.org
Wed Apr 28 12:03:39 UTC 2010


Author: twaugh

Update of /cvs/pkgs/rpms/hplip/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv29154

Modified Files:
	hplip.spec 
Added Files:
	hplip-clear-old-state-reasons.patch 
Log Message:
* Wed Apr 28 2010 Tim Waugh <twaugh at redhat.com> - 3.10.2-13
- Clear old printer-state-reasons we used to manage (bug #510926).


hplip-clear-old-state-reasons.patch:
 HPCupsFilter.cpp |    8 ++++++++
 1 file changed, 8 insertions(+)

--- NEW FILE hplip-clear-old-state-reasons.patch ---
diff -up hplip-3.10.2/prnt/hpcups/HPCupsFilter.cpp.clear-old-state-reasons hplip-3.10.2/prnt/hpcups/HPCupsFilter.cpp
--- hplip-3.10.2/prnt/hpcups/HPCupsFilter.cpp.clear-old-state-reasons	2010-04-28 12:23:08.296730566 +0100
+++ hplip-3.10.2/prnt/hpcups/HPCupsFilter.cpp	2010-04-28 12:25:25.493730293 +0100
@@ -479,6 +479,14 @@ 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) {


Index: hplip.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hplip/devel/hplip.spec,v
retrieving revision 1.273
retrieving revision 1.274
diff -u -p -r1.273 -r1.274
--- hplip.spec	27 Apr 2010 11:04:11 -0000	1.273
+++ hplip.spec	28 Apr 2010 12:03:39 -0000	1.274
@@ -1,7 +1,7 @@
 Summary: HP Linux Imaging and Printing Project
 Name: hplip
 Version: 3.10.2
-Release: 12%{?dist}
+Release: 13%{?dist}
 License: GPLv2+ and MIT
 Group: System Environment/Daemons
 Conflicts: system-config-printer < 0.6.132
@@ -25,6 +25,7 @@ Patch8: hplip-retry-open.patch
 Patch9: hplip-tray-icon-crash.patch
 Patch10: hplip-discovery-method.patch
 Patch11: hplip-device-reconnected.patch
+Patch12: hplip-clear-old-state-reasons.patch
 Patch14: hplip-hpcups-sigpipe.patch
 Patch16: hplip-bad-low-ink-warning.patch
 Patch17: hplip-deviceIDs-ppd.patch
@@ -160,6 +161,9 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version}
 # Give up trying to print a job to a reconnected device (bug #515481).
 %patch11 -p1 -b .device-reconnected
 
+# Clear old printer-state-reasons we used to manage (bug #510926).
+%patch12 -p1 -b .clear-old-state-reasons
+
 # Avoid busy loop in hpcups when backend has exited (bug #525944).
 %patch14 -p1 -b .hpcups-sigpipe
 
@@ -410,6 +414,9 @@ fi
 %{_bindir}/hpcups-update-ppds &>/dev/null ||:
 
 %changelog
+* Wed Apr 28 2010 Tim Waugh <twaugh at redhat.com> - 3.10.2-13
+- Clear old printer-state-reasons we used to manage (bug #510926).
+
 * Tue Apr 27 2010 Jiri Popelka <jpopelka at redhat.com> - 3.10.2-12
 - Added missing newline to string argument in dbglog() call (bug #585275).
 



More information about the scm-commits mailing list