From: Zbigniew Jędrzejewski-Szmek Date: Tue, 8 Oct 2019 12:22:17 +0000 (+0200) Subject: parse_hwdb: process files in order X-Git-Tag: v244-rc1~203^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b32ae3aa7b63bad3cd9d412701d66c5cd8499160;p=thirdparty%2Fsystemd.git parse_hwdb: process files in order Also, make the pattern more general. There are some plans to add more files there, let's make sure we don't miss them. --- diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py index 78c7f9bd562..1bd36b8abae 100755 --- a/hwdb.d/parse_hwdb.py +++ b/hwdb.d/parse_hwdb.py @@ -233,7 +233,7 @@ def print_summary(fname, groups): error('{}: no matches or props'.format(fname)) if __name__ == '__main__': - args = sys.argv[1:] or glob.glob(os.path.dirname(sys.argv[0]) + '/[67]0-*.hwdb') + args = sys.argv[1:] or sorted(glob.glob(os.path.dirname(sys.argv[0]) + '/[67][0-9]-*.hwdb')) for fname in args: groups = parse(fname)