forked from OpenPrinting/pyppd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved the checking of "*1284DeviceID:" and "*Product:" lines in th…
…e PPD files whether they are really for different models - if a device ID has no MDL/MODEL field, it is not taken into account as an extra model - If in a device ID a DRV: field is found (Foomatic info) this is added to the device IDs of all model entries. - Model names get normalized before comparing: all lowercase, leading and trailing white space stripped, manufacturer name in the beginning removed, then only really different models get an extra entry. - If a PPD contains one or more "*1284DeviceID:" lines and only one "*Product:" line, the model name of the "*Product:" line is ignored. This removes tons of bogus lines, especially in the PPD from Foomatic (both generated from XML and ready-made PPDs from printer manufacturers) and HPLIP.
- Loading branch information
1 parent
56b2e2c
commit 5ddd8b3
Showing
1 changed file
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters