[Buildroot] [git commit branch/2020.11.x] utils/get-developers: use Developers.hasfile() where appropriate

Peter Korsgaard peter at korsgaard.com
Tue Jan 19 14:24:06 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=fdb7ee67d2859052fb22bba9207bb889fcaf0ee6
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.11.x

Instead of open-coding Developers.hasfile() in utils/get-developers,
use it directly.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Tested-by: Heiko Thiery <heiko.thiery at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 57ecb6c8ebba1d742254f4fc251fe358017cdd2e)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 utils/get-developers | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/utils/get-developers b/utils/get-developers
index 750fc556dc..20272ed60b 100755
--- a/utils/get-developers
+++ b/utils/get-developers
@@ -77,9 +77,8 @@ def __main__():
     if args.files is not None:
         args.files = [os.path.abspath(f) for f in args.files]
         for dev in devs:
-            for devfile in dev.files:
-                commonfiles = [f for f in args.files if f.startswith(devfile)]
-                if commonfiles:
+            for f in args.files:
+                if dev.hasfile(f):
                     print(dev.name)
                     break
 


More information about the buildroot mailing list