- The scheduler added two job-name attributes to each job object (STR
#3428).
This commit is contained in:
parent
fd32ad0d44
commit
7f6e506a3f
57
cups-str3428.patch
Normal file
57
cups-str3428.patch
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
diff -up cups-1.4.2/scheduler/ipp.c.str3428 cups-1.4.2/scheduler/ipp.c
|
||||||
|
--- cups-1.4.2/scheduler/ipp.c.str3428 2009-12-08 12:24:31.177373309 +0000
|
||||||
|
+++ cups-1.4.2/scheduler/ipp.c 2009-12-08 12:27:33.910498083 +0000
|
||||||
|
@@ -1860,8 +1860,6 @@ add_job(cupsd_client_t *con, /* I - Cl
|
||||||
|
"job-media-sheets-completed", 0);
|
||||||
|
ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_URI, "job-printer-uri", NULL,
|
||||||
|
printer->uri);
|
||||||
|
- ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_NAME, "job-name", NULL,
|
||||||
|
- title);
|
||||||
|
|
||||||
|
if ((attr = ippFindAttribute(job->attrs, "job-k-octets",
|
||||||
|
IPP_TAG_INTEGER)) != NULL)
|
||||||
|
@@ -3438,7 +3436,7 @@ apple_register_profiles(
|
||||||
|
num_profiles ++;
|
||||||
|
}
|
||||||
|
|
||||||
|
-
|
||||||
|
+
|
||||||
|
/*
|
||||||
|
* If we have profiles, add them...
|
||||||
|
*/
|
||||||
|
@@ -3484,7 +3482,7 @@ apple_register_profiles(
|
||||||
|
snprintf(q_keyword, sizeof(q_keyword), "Default%s", attr->value);
|
||||||
|
q2_attr = ppdFindAttr(ppd, q_keyword, NULL);
|
||||||
|
}
|
||||||
|
- else
|
||||||
|
+ else
|
||||||
|
q2_attr = ppdFindAttr(ppd, "DefaultMediaType", NULL);
|
||||||
|
|
||||||
|
if (q2_attr && q2_attr->value && q2_attr->value[0])
|
||||||
|
@@ -3498,7 +3496,7 @@ apple_register_profiles(
|
||||||
|
snprintf(q_keyword, sizeof(q_keyword), "Default%s", attr->value);
|
||||||
|
q3_attr = ppdFindAttr(ppd, q_keyword, NULL);
|
||||||
|
}
|
||||||
|
- else
|
||||||
|
+ else
|
||||||
|
q3_attr = ppdFindAttr(ppd, "DefaultResolution", NULL);
|
||||||
|
|
||||||
|
if (q3_attr && q3_attr->value && q3_attr->value[0])
|
||||||
|
@@ -3667,7 +3665,7 @@ apple_register_profiles(
|
||||||
|
attr = ppdFindAttr(ppd, "DefaultColorSpace", NULL);
|
||||||
|
|
||||||
|
num_profiles = (attr && ppd->colorspace == PPD_CS_GRAY) ? 1 : 2;
|
||||||
|
-
|
||||||
|
+
|
||||||
|
if ((profiles = calloc(num_profiles, sizeof(CMDeviceProfileArray))) == NULL)
|
||||||
|
{
|
||||||
|
cupsdLogMessage(CUPSD_LOG_ERROR,
|
||||||
|
@@ -4762,7 +4760,7 @@ check_quotas(cupsd_client_t *con, /* I
|
||||||
|
if (q->page_count == -4) /* special case: unlimited user */
|
||||||
|
{
|
||||||
|
cupsdLogMessage(CUPSD_LOG_INFO,
|
||||||
|
- "User \"%s\" request approved for printer %s (%s): "
|
||||||
|
+ "User \"%s\" request approved for printer %s (%s): "
|
||||||
|
"unlimited quota.",
|
||||||
|
username, p->name, p->info);
|
||||||
|
q->page_count = 0; /* allow user to print */
|
@ -70,6 +70,7 @@ Patch43: cups-media-empty-warning.patch
|
|||||||
Patch44: cups-str3435.patch
|
Patch44: cups-str3435.patch
|
||||||
Patch45: cups-str3436.patch
|
Patch45: cups-str3436.patch
|
||||||
Patch46: cups-str3425.patch
|
Patch46: cups-str3425.patch
|
||||||
|
Patch47: cups-str3428.patch
|
||||||
|
|
||||||
Patch100: cups-lspp.patch
|
Patch100: cups-lspp.patch
|
||||||
|
|
||||||
@ -245,6 +246,7 @@ module.
|
|||||||
%patch44 -p1 -b .str3435
|
%patch44 -p1 -b .str3435
|
||||||
%patch45 -p1 -b .str3436
|
%patch45 -p1 -b .str3436
|
||||||
%patch46 -p1 -b .str3425
|
%patch46 -p1 -b .str3425
|
||||||
|
%patch47 -p1 -b .str3428
|
||||||
|
|
||||||
%if %lspp
|
%if %lspp
|
||||||
%patch100 -p1 -b .lspp
|
%patch100 -p1 -b .lspp
|
||||||
@ -544,6 +546,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Dec 8 2009 Tim Waugh <twaugh@redhat.com> - 1:1.4.2-14
|
* Tue Dec 8 2009 Tim Waugh <twaugh@redhat.com> - 1:1.4.2-14
|
||||||
|
- The scheduler added two job-name attributes to each job object
|
||||||
|
(STR #3428).
|
||||||
- The scheduler did not clean out completed jobs when
|
- The scheduler did not clean out completed jobs when
|
||||||
PreserveJobHistory was turned off (STR #3425).
|
PreserveJobHistory was turned off (STR #3425).
|
||||||
- The web interface did not show completed jobs (STR #3436).
|
- The web interface did not show completed jobs (STR #3436).
|
||||||
|
Loading…
Reference in New Issue
Block a user