]> 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)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 27 Feb 2026 21:57:05 +0000 (21:57 +0000)
(cherry picked from commit babfd9cbaacea8225380602190289bba65e6bfa7)
(cherry picked from commit e66bedf728c2f8e7ed675724e8bb9cc3e6cb043b)
(cherry picked from commit 5913a0a86e19c08d890c333dc597a6a72dc0ea3b)

hwdb.d/parse_hwdb.py

index bca18eadcd8b872517b5bce8b05a3c41bd698739..a22285a603c25bfb6b6a1ee040d37913ba56afd3 100755 (executable)
@@ -336,7 +336,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'))