aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-11-19 15:53:53 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2021-01-19 15:22:47 +0100
commit3bdae5980c9841ff2b3976fa379aa76921daacb1 (patch)
tree66e923f67a293b4b77aea75286f649ca50bb15af
parent689651a3fa719b9f081b67225171dd8e4f64cc0f (diff)
downloadbuildroot-3bdae5980c9841ff2b3976fa379aa76921daacb1.tar.gz
buildroot-3bdae5980c9841ff2b3976fa379aa76921daacb1.tar.bz2
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 <thomas.petazzoni@bootlin.com> Tested-by: Heiko Thiery <heiko.thiery@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 57ecb6c8ebba1d742254f4fc251fe358017cdd2e) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rwxr-xr-xutils/get-developers5
1 files 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