cups/cups-1.4-do_not_strip_recommended_from_PPDs.patch
Johannes Meixner fed6abd650 Accepting request 30604 from home:jsmeix:branches:Printing
Copy from home:jsmeix:branches:Printing/cups via accept of submit request 30604 revision 2.
Request was accepted with message:

OBS-URL: https://build.opensuse.org/request/show/30604
OBS-URL: https://build.opensuse.org/package/show/Printing/cups?expand=0&rev=182
2010-01-27 15:30:41 +00:00

27 lines
773 B
Diff

--- scheduler/cups-driverd.cxx.orig 2009-06-09 00:00:14.000000000 +0200
+++ scheduler/cups-driverd.cxx 2009-07-01 14:38:44.000000000 +0200
@@ -211,7 +211,6 @@ add_ppd(const char *filename, /* I - PP
const char *scheme) /* I - PPD scheme */
{
ppd_info_t *ppd; /* PPD */
- char *recommended; /* Foomatic driver string */
/*
@@ -250,15 +249,6 @@ add_ppd(const char *filename, /* I - PP
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...
*/