Make find backend only look for ebuilds

This commit is contained in:
Midgard 2022-09-18 04:08:45 +02:00
parent de5ba7a533
commit 72504309cc
Signed by untrusted user who does not match committer: midgard
GPG Key ID: 511C112F1331BBB4
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def find(query, paths, depth=None):
depth_args = ["-mindepth", f"{depth}", "-maxdepth", f"{depth}"] if depth is not None else []
proc = subprocess.run(
["find", *paths, *depth_args, "-iname", f"*{query}*", "-print0"],
["find", *paths, *depth_args, "-iname", f"*{query}*.ebuild", "-print0"],
check=True, stdout=subprocess.PIPE
)
return list_from_print0(proc.stdout)