summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Kampetter <till.kampetter@gmail.com>2016-08-09 18:11:36 +0200
committerDidier Raboud <odyx@debian.org>2017-10-17 08:43:33 +0200
commit3226090ec8d0678900980677cefbf5dd8d90617d (patch)
tree249c6653cfc555b2e84e1f5068e8dc1ab9818469
parent080dec15a3144f7c37f9f2cff4d0c143c4b11ae0 (diff)
CUPS removes the "(recommended)" comments of the NickNames of Foomatic PPDs when listing available PPDs. This patch removes this removal action.
Last-Update: 2015-02-10 Patch-Name: reactivate_recommended_driver.patch Gbp-Pq: Name reactivate_recommended_driver.patch
-rw-r--r--scheduler/cups-driverd.cxx10
1 files changed, 0 insertions, 10 deletions
diff --git a/scheduler/cups-driverd.cxx b/scheduler/cups-driverd.cxx
index 903091129..5d3ddb6d4 100644
--- a/scheduler/cups-driverd.cxx
+++ b/scheduler/cups-driverd.cxx
@@ -246,7 +246,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 */
/*
@@ -285,15 +284,6 @@ add_ppd(const char *filename, /* I - PPD filename */
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...
*/