From: David SantamarĂ­a Rogado Date: Sat, 14 Feb 2026 22:03:45 +0000 (+0100) Subject: hwdb: don't error on empty hwdb file X-Git-Tag: v257.11~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=44957e4f1aada8e39a0d8f4e7ff40af19ab8ccbf;p=thirdparty%2Fsystemd.git hwdb: don't error on empty hwdb file (cherry picked from commit babfd9cbaacea8225380602190289bba65e6bfa7) (cherry picked from commit e66bedf728c2f8e7ed675724e8bb9cc3e6cb043b) (cherry picked from commit 5913a0a86e19c08d890c333dc597a6a72dc0ea3b) --- diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py index bca18eadcd8..a22285a603c 100755 --- a/hwdb.d/parse_hwdb.py +++ b/hwdb.d/parse_hwdb.py @@ -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'))