mirror of https://gitee.com/openkylin/cups.git
CUPS removes the "(recommended)" comments of the NickNames of Foomatic PPDs when listing available PPDs. This patch removes this removal action.
Patch-Name: reactivate_recommended_driver.patch Gbp-Pq: Name 0024-CUPS-removes-the-recommended-comments-of-the-NickNam.patch
This commit is contained in:
parent
472a97d25d
commit
dca4965086
|
@ -240,7 +240,6 @@ add_ppd(const char *filename, /* I - PPD filename */
|
|||
const char *scheme) /* I - PPD scheme */
|
||||
{
|
||||
ppd_info_t *ppd; /* PPD */
|
||||
char *recommended; /* Foomatic driver string */
|
||||
|
||||
|
||||
/*
|
||||
|
@ -278,15 +277,6 @@ add_ppd(const char *filename, /* I - PPD filename */
|
|||
strlcpy(ppd->record.device_id, device_id, sizeof(ppd->record.device_id));
|
||||
strlcpy(ppd->record.scheme, scheme, sizeof(ppd->record.scheme));
|
||||
|
||||
/*
|
||||
* Strip confusing (and often wrong) "recommended" suffix added by
|
||||
* Foomatic drivers...
|
||||
*/
|
||||
|
||||
if ((recommended = strstr(ppd->record.make_and_model,
|
||||
" (recommended)")) != NULL)
|
||||
*recommended = '\0';
|
||||
|
||||
/*
|
||||
* Add the PPD to the PPD arrays...
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue