* [Buildroot] [PATCH 1/1] utils/scanpypi: use a set comprehension for dependencies
@ 2023-11-30 21:19 James Hilliard
2024-02-07 19:00 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: James Hilliard @ 2023-11-30 21:19 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard
This ensures that we don't have duplicate dependencies.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
utils/scanpypi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils/scanpypi b/utils/scanpypi
index 021c99a172..5a58550145 100755
--- a/utils/scanpypi
+++ b/utils/scanpypi
@@ -411,8 +411,8 @@ class BuildrootPackage():
for req in self.pkg_req]
# get rid of commented lines and also strip the package strings
- self.pkg_req = [item.strip() for item in self.pkg_req
- if len(item) > 0 and item[0] != '#']
+ self.pkg_req = {item.strip() for item in self.pkg_req
+ if len(item) > 0 and item[0] != '#'}
req_not_found = self.pkg_req
self.pkg_req = list(map(pkg_buildroot_name, self.pkg_req))
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] utils/scanpypi: use a set comprehension for dependencies
2023-11-30 21:19 [Buildroot] [PATCH 1/1] utils/scanpypi: use a set comprehension for dependencies James Hilliard
@ 2024-02-07 19:00 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-02-07 19:00 UTC (permalink / raw)
To: James Hilliard; +Cc: buildroot
On Thu, 30 Nov 2023 14:19:10 -0700
James Hilliard <james.hilliard1@gmail.com> wrote:
> This ensures that we don't have duplicate dependencies.
>
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
> utils/scanpypi | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-07 19:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-30 21:19 [Buildroot] [PATCH 1/1] utils/scanpypi: use a set comprehension for dependencies James Hilliard
2024-02-07 19:00 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox