* [Buildroot] [PATCH 1/1] utils/getdeveloperlib.py: force foward-slash for pattern matching
[not found] <20210905013520.15960-1-james.d.knight@live.com>
@ 2021-09-05 1:35 ` James Knight
2021-09-11 20:43 ` Arnout Vandecappelle
2021-09-13 17:42 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: James Knight @ 2021-09-05 1:35 UTC (permalink / raw)
To: buildroot; +Cc: James Knight
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>
---
utils/getdeveloperlib.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/utils/getdeveloperlib.py b/utils/getdeveloperlib.py
index b205817033d1d488c13e88f3b1bdbf82aa6b1224..fb8c7546d74f764468e6ffeb0d18b169aefb80d9 100644
--- a/utils/getdeveloperlib.py
+++ b/utils/getdeveloperlib.py
@@ -249,7 +249,10 @@ def parse_developers():
if len(dev_files) == 0:
print("WARNING: '%s' doesn't match any file" % fname,
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 == "":
if not name:
continue
--
2.28.0.windows.1
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] utils/getdeveloperlib.py: force foward-slash for pattern matching
2021-09-05 1:35 ` [Buildroot] [PATCH 1/1] utils/getdeveloperlib.py: force foward-slash for pattern matching James Knight
@ 2021-09-11 20:43 ` Arnout Vandecappelle
2021-09-13 17:42 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2021-09-11 20:43 UTC (permalink / raw)
To: James Knight, buildroot
On 05/09/2021 03:35, James Knight wrote:
> 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>
Applied to master, thanks.
Regards,
Arnout
> ---
> utils/getdeveloperlib.py | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/utils/getdeveloperlib.py b/utils/getdeveloperlib.py
> index b205817033d1d488c13e88f3b1bdbf82aa6b1224..fb8c7546d74f764468e6ffeb0d18b169aefb80d9 100644
> --- a/utils/getdeveloperlib.py
> +++ b/utils/getdeveloperlib.py
> @@ -249,7 +249,10 @@ def parse_developers():
> if len(dev_files) == 0:
> print("WARNING: '%s' doesn't match any file" % fname,
> 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 == "":
> if not name:
> continue
>
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] utils/getdeveloperlib.py: force foward-slash for pattern matching
2021-09-05 1:35 ` [Buildroot] [PATCH 1/1] utils/getdeveloperlib.py: force foward-slash for pattern matching James Knight
2021-09-11 20:43 ` Arnout Vandecappelle
@ 2021-09-13 17:42 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2021-09-13 17:42 UTC (permalink / raw)
To: James Knight; +Cc: buildroot
>>>>> "James" == James Knight <james.d.knight@live.com> writes:
> 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>
Committed to 2021.02.x, 2021.05.x and 2021.08.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-14 18:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20210905013520.15960-1-james.d.knight@live.com>
2021-09-05 1:35 ` [Buildroot] [PATCH 1/1] utils/getdeveloperlib.py: force foward-slash for pattern matching James Knight
2021-09-11 20:43 ` Arnout Vandecappelle
2021-09-13 17:42 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.