cups-filters/cups-filters-get-attrs-earlier.patch
DistroBaker efcac2932d Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/cups-filters.git#12bd6655362f7e0f8790c34a208d10ca6333f99e
2020-11-24 06:11:48 +00:00

37 lines
1.5 KiB
Diff

diff --git a/utils/cups-browsed.c b/utils/cups-browsed.c
index 885bc1c..b4df0e4 100644
--- a/utils/cups-browsed.c
+++ b/utils/cups-browsed.c
@@ -8157,6 +8157,7 @@ gboolean update_cups_queues(gpointer unused) {
sizes = NULL;
} else {
make_model = (char*)malloc(sizeof(char) * 256);
+ printer_attributes = get_cluster_attributes(p->queue_name);
if ((attr = ippFindAttribute(printer_attributes,
"printer-make-and-model",
IPP_TAG_TEXT)) != NULL)
@@ -8174,7 +8175,6 @@ gboolean update_cups_queues(gpointer unused) {
}
}
default_pagesize = (char *)malloc(sizeof(char)*32);
- printer_attributes = get_cluster_attributes(p->queue_name);
debug_printf("Generated Merged Attributes for local queue %s\n",
p->queue_name);
conflicts = generate_cluster_conflicts(p->queue_name,
@@ -8499,6 +8499,7 @@ gboolean update_cups_queues(gpointer unused) {
sizes = NULL;
} else {
make_model = (char*)malloc(sizeof(char)*256);
+ printer_attributes = get_cluster_attributes(p->queue_name);
if((attr = ippFindAttribute(printer_attributes,
"printer-make-and-model",
IPP_TAG_TEXT)) != NULL)
@@ -8516,7 +8517,6 @@ gboolean update_cups_queues(gpointer unused) {
}
}
default_pagesize = (char *)malloc(sizeof(char)*32);
- printer_attributes = get_cluster_attributes(p->queue_name);
debug_printf("Generated Merged Attributes for local queue %s\n",
p->queue_name);
conflicts = generate_cluster_conflicts(p->queue_name,