diff options
author | Didier Raboud <odyx@debian.org> | 2018-12-05 23:03:25 +0100 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2018-12-05 23:03:25 +0100 |
commit | bea519f53d15eb67cd379cdbdc839dfa70b6f360 (patch) | |
tree | 2cc5749f40905c5b6c81d1b81c18dfbf2b793f1e | |
parent | 3ca64655a49653390ece8888c638be4474aa3429 (diff) | |
parent | b696fbc139822581e4546ef3b55e84f920950977 (diff) |
merge patched-debian/master into debian/master
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | debian/.git-dpm | 4 | ||||
-rw-r--r-- | debian/patches/0001-cups-browsed-On-shutdown-queues-got-removed-even-if-.patch | 72 | ||||
-rw-r--r-- | debian/patches/series | 1 | ||||
-rw-r--r-- | utils/cups-browsed.c | 12 |
5 files changed, 89 insertions, 5 deletions
@@ -1,6 +1,11 @@ NEWS - OpenPrinting CUPS Filters v1.21.5 - 2018-12-05 ----------------------------------------------------- +CHANGES IN V1.21.6 + + - cups-browsed: On shutdown queues got removed even if they + still had jobs (Debian bug #908147). + CHANGES IN V1.21.5 - cups-browsed: We cannot reliably determine whether a CUPS diff --git a/debian/.git-dpm b/debian/.git-dpm index a7b250cba..1e68ffa9f 100644 --- a/debian/.git-dpm +++ b/debian/.git-dpm @@ -1,6 +1,6 @@ # see git-dpm(1) from git-dpm package -71477772c1441da64ae35920c576e9b851cc47bd -71477772c1441da64ae35920c576e9b851cc47bd +b696fbc139822581e4546ef3b55e84f920950977 +b696fbc139822581e4546ef3b55e84f920950977 71477772c1441da64ae35920c576e9b851cc47bd 71477772c1441da64ae35920c576e9b851cc47bd cups-filters_1.21.5.orig.tar.xz diff --git a/debian/patches/0001-cups-browsed-On-shutdown-queues-got-removed-even-if-.patch b/debian/patches/0001-cups-browsed-On-shutdown-queues-got-removed-even-if-.patch new file mode 100644 index 000000000..a3f339501 --- /dev/null +++ b/debian/patches/0001-cups-browsed-On-shutdown-queues-got-removed-even-if-.patch @@ -0,0 +1,72 @@ +From b696fbc139822581e4546ef3b55e84f920950977 Mon Sep 17 00:00:00 2001 +From: Till Kamppeter <till.kamppeter@gmail.com> +Date: Wed, 5 Dec 2018 22:14:15 +0100 +Subject: cups-browsed: On shutdown queues got removed even if they still had + jobs + +--- + NEWS | 5 +++++ + utils/cups-browsed.c | 12 +++++++++--- + 2 files changed, 14 insertions(+), 3 deletions(-) + +diff --git a/NEWS b/NEWS +index e5a6c391a..efab6fccd 100644 +--- a/NEWS ++++ b/NEWS +@@ -1,6 +1,11 @@ + NEWS - OpenPrinting CUPS Filters v1.21.5 - 2018-12-05 + ----------------------------------------------------- + ++CHANGES IN V1.21.6 ++ ++ - cups-browsed: On shutdown queues got removed even if they ++ still had jobs (Debian bug #908147). ++ + CHANGES IN V1.21.5 + + - cups-browsed: We cannot reliably determine whether a CUPS +diff --git a/utils/cups-browsed.c b/utils/cups-browsed.c +index b07a2d171..ee361d9a8 100644 +--- a/utils/cups-browsed.c ++++ b/utils/cups-browsed.c +@@ -4567,7 +4567,9 @@ gboolean update_cups_queues(gpointer unused) { + p->timeout = current_time + TIMEOUT_RETRY; + p->no_autosave = 0; + break; +- } ++ } else ++ /* Make sure queue's list entry gets freed */ ++ goto keep_queue; + } + + /* If this queue was the default printer, note that fact so that +@@ -4587,7 +4589,9 @@ gboolean update_cups_queues(gpointer unused) { + p->timeout = current_time + TIMEOUT_RETRY; + p->no_autosave = 0; + break; +- } ++ } else ++ /* Make sure queue's list entry gets freed */ ++ goto keep_queue; + } + + /* No jobs, remove the CUPS queue */ +@@ -4616,6 +4620,8 @@ gboolean update_cups_queues(gpointer unused) { + } + } + ++ keep_queue: ++ + /* CUPS queue removed or released from cups-browsed, remove the list + entry */ + /* Note that we do not need to break out of the loop passing through +@@ -4818,8 +4824,8 @@ gboolean update_cups_queues(gpointer unused) { + current_time = time(NULL); + p->timeout = current_time + TIMEOUT_RETRY; + p->no_autosave = 0; +- break; + } ++ break; + } + /* No jobs, remove the CUPS queue */ + request = ippNewRequest(CUPS_DELETE_PRINTER); diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 000000000..b26db5389 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-cups-browsed-On-shutdown-queues-got-removed-even-if-.patch diff --git a/utils/cups-browsed.c b/utils/cups-browsed.c index b07a2d171..ee361d9a8 100644 --- a/utils/cups-browsed.c +++ b/utils/cups-browsed.c @@ -4567,7 +4567,9 @@ gboolean update_cups_queues(gpointer unused) { p->timeout = current_time + TIMEOUT_RETRY; p->no_autosave = 0; break; - } + } else + /* Make sure queue's list entry gets freed */ + goto keep_queue; } /* If this queue was the default printer, note that fact so that @@ -4587,7 +4589,9 @@ gboolean update_cups_queues(gpointer unused) { p->timeout = current_time + TIMEOUT_RETRY; p->no_autosave = 0; break; - } + } else + /* Make sure queue's list entry gets freed */ + goto keep_queue; } /* No jobs, remove the CUPS queue */ @@ -4616,6 +4620,8 @@ gboolean update_cups_queues(gpointer unused) { } } + keep_queue: + /* CUPS queue removed or released from cups-browsed, remove the list entry */ /* Note that we do not need to break out of the loop passing through @@ -4818,8 +4824,8 @@ gboolean update_cups_queues(gpointer unused) { current_time = time(NULL); p->timeout = current_time + TIMEOUT_RETRY; p->no_autosave = 0; - break; } + break; } /* No jobs, remove the CUPS queue */ request = ippNewRequest(CUPS_DELETE_PRINTER); |