mirror of
https://github.com/systemd/systemd.git
synced 2026-08-12 22:17:19 +00:00
hwdb: don't error on empty hwdb file
(cherry picked from commit babfd9cbaa)
This commit is contained in:
committed by
Luca Boccassi
parent
c0277048b0
commit
e66bedf728
@@ -337,7 +337,7 @@ def print_summary(fname, groups):
|
||||
print(f'{fname}: {len(groups)} match groups, {n_matches} matches, {n_props} properties')
|
||||
|
||||
if n_matches == 0 or n_props == 0:
|
||||
error(f'{fname}: no matches or props')
|
||||
print(f'{fname}: no matches or props')
|
||||
|
||||
if __name__ == '__main__':
|
||||
args = sys.argv[1:] or sorted(glob.glob(os.path.dirname(sys.argv[0]) + '/[678][0-9]-*.hwdb'))
|
||||
|
||||
Reference in New Issue
Block a user