]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: don't error on empty hwdb file
authorDavid Santamaría Rogado <howl.nsp@gmail.com>
Sat, 14 Feb 2026 22:03:45 +0000 (23:03 +0100)
committerDavid Santamaría Rogado <howl.nsp@gmail.com>
Mon, 16 Feb 2026 02:39:08 +0000 (03:39 +0100)
hwdb.d/parse_hwdb.py

index 87a2316c464ddd368151034da1bf120827fd77a6..9e39911ae09a95bed6da6588d4fe90ed8e0bdc8b 100755 (executable)
@@ -350,7 +350,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([