1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-08-22 01:50:10 +03:00

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.

(cherry picked from commit b32ae3aa7b)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-10-08 14:22:17 +02:00
parent ef677436aa
commit cb1d892f17

View File

@ -231,7 +231,7 @@ def print_summary(fname, groups):
sum(len(props) for matches, props in groups)))
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)