Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions cupshelpers/ppds.py
Original file line number Diff line number Diff line change
Expand Up @@ -1157,12 +1157,9 @@ def _init_ids (self):
lmfg = id_dict['MFG'].lower ()
lmdl = id_dict['MDL'].lower ()

bad = False
if len (lmfg) == 0:
bad = True
# A blank MFG is legal (some devices report one); index the
# PPD under the empty make so blank-MFG device IDs can match.
if len (lmdl) == 0:
bad = True
if bad:
continue

if lmfg not in ids:
Expand Down