From: Thomas Petazzoni Date: Thu, 19 Nov 2020 14:53:53 +0000 (+0100) Subject: utils/get-developers: use Developers.hasfile() where appropriate X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57ecb6c8ebba1d742254f4fc251fe358017cdd2e;p=buildroot.git utils/get-developers: use Developers.hasfile() where appropriate Instead of open-coding Developers.hasfile() in utils/get-developers, use it directly. Signed-off-by: Thomas Petazzoni Tested-by: Heiko Thiery Signed-off-by: Thomas Petazzoni --- 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