Synthesize notify-printer-uri for job-completed events where the job never started processing (bug #784786, STR #4014).
This commit is contained in:
parent
1d73f20c6a
commit
3ace51f9ae
16
cups-str4014.patch
Normal file
16
cups-str4014.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
diff -up cups-1.5.2/scheduler/subscriptions.c.str4014 cups-1.5.2/scheduler/subscriptions.c
|
||||||
|
--- cups-1.5.2/scheduler/subscriptions.c.str4014 2012-02-15 13:17:24.065004731 +0000
|
||||||
|
+++ cups-1.5.2/scheduler/subscriptions.c 2012-02-15 13:17:34.021009331 +0000
|
||||||
|
@@ -146,7 +146,11 @@ cupsdAddEvent(
|
||||||
|
temp->time = time(NULL);
|
||||||
|
temp->attrs = ippNew();
|
||||||
|
temp->job = job;
|
||||||
|
- temp->dest = dest;
|
||||||
|
+
|
||||||
|
+ if (dest)
|
||||||
|
+ temp->dest = dest;
|
||||||
|
+ else if (job)
|
||||||
|
+ temp->dest = dest = cupsdFindPrinter(job->dest);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Add common event notification attributes...
|
@ -76,6 +76,7 @@ Patch34: cups-avahi-5-services.patch
|
|||||||
|
|
||||||
Patch35: cups-icc.patch
|
Patch35: cups-icc.patch
|
||||||
Patch36: cups-systemd-socket.patch
|
Patch36: cups-systemd-socket.patch
|
||||||
|
Patch37: cups-str4014.patch
|
||||||
|
|
||||||
Patch100: cups-lspp.patch
|
Patch100: cups-lspp.patch
|
||||||
|
|
||||||
@ -295,6 +296,10 @@ Sends IPP requests to the specified URI and tests and/or displays the results.
|
|||||||
# Poettering).
|
# Poettering).
|
||||||
%patch36 -p1 -b .systemd-socket
|
%patch36 -p1 -b .systemd-socket
|
||||||
|
|
||||||
|
# Synthesize notify-printer-uri for job-completed events where the job
|
||||||
|
# never started processing (bug #784786, STR #4014).
|
||||||
|
%patch37 -p1 -b .str4014
|
||||||
|
|
||||||
%if %lspp
|
%if %lspp
|
||||||
# LSPP support.
|
# LSPP support.
|
||||||
%patch100 -p1 -b .lspp
|
%patch100 -p1 -b .lspp
|
||||||
@ -655,6 +660,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Feb 15 2012 Tim Waugh <twaugh@redhat.com> 1:1.5.2-2
|
* Wed Feb 15 2012 Tim Waugh <twaugh@redhat.com> 1:1.5.2-2
|
||||||
|
- Synthesize notify-printer-uri for job-completed events where the job
|
||||||
|
never started processing (bug #784786, STR #4014).
|
||||||
- Removed banners from LSPP patch on Dan Walsh's advice.
|
- Removed banners from LSPP patch on Dan Walsh's advice.
|
||||||
|
|
||||||
* Mon Feb 06 2012 Jiri Popelka <jpopelka@redhat.com> 1:1.5.2-1
|
* Mon Feb 06 2012 Jiri Popelka <jpopelka@redhat.com> 1:1.5.2-1
|
||||||
|
Loading…
Reference in New Issue
Block a user