mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
utils/getdeveloperlib.py: force forward-slash for pattern matching
Force relative file path resolution of DEVELOPERS file entries to use
forward-slash separators since pattern matching assumes forward slashes.
This is to help permit uses invoking `get-developers` on Platforms where
`os.sep` may not be a forward slash.
Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(cherry picked from commit eb75d71b80)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
c776e800b5
commit
737001e68b
@@ -251,7 +251,10 @@ def parse_developers():
|
|||||||
if len(dev_files) == 0:
|
if len(dev_files) == 0:
|
||||||
print("WARNING: '%s' doesn't match any file" % fname,
|
print("WARNING: '%s' doesn't match any file" % fname,
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
files += [os.path.relpath(f, brpath) for f in dev_files]
|
for f in dev_files:
|
||||||
|
dev_file = os.path.relpath(f, brpath)
|
||||||
|
dev_file = dev_file.replace(os.sep, '/') # force unix sep
|
||||||
|
files.append(dev_file)
|
||||||
elif line == "":
|
elif line == "":
|
||||||
if not name:
|
if not name:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user