From e66bedf728c2f8e7ed675724e8bb9cc3e6cb043b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Santamar=C3=ADa=20Rogado?= Date: Sat, 14 Feb 2026 23:03:45 +0100 Subject: [PATCH] hwdb: don't error on empty hwdb file (cherry picked from commit babfd9cbaacea8225380602190289bba65e6bfa7) --- hwdb.d/parse_hwdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py index 165c8d608fc..c4e7fd463f3 100755 --- a/hwdb.d/parse_hwdb.py +++ b/hwdb.d/parse_hwdb.py @@ -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'))