mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +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.
This commit is contained in:
parent
f3c80bc01e
commit
b32ae3aa7b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user