hpmud ignores *_series entries in models.dat
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Hi,
there is a report in Fedora https:/
It is due recent changes in models.dat - you probably wanted to reduce the size of models.dat, so you began aggregating similar models into one entry - like hp_laserjet_
But the problem is that io/hpmud/model.c is not aware of such changes and still expects exact case-insensitive match - so it compares 'HP_LaserJet_2200' with "hp_laserjet_
The attached patch does the case-insensitive comparison of model and section on model length. Then it compares the part of section after model length with '_series'.
Would you mind adding it into the project?
Hi,
Thanks for proposing the patch.
We will review it and include it in our code.