mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user