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:
@ -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)
|
||||
|
Reference in New Issue
Block a user