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

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 [] depth_args = ["-mindepth", f"{depth}", "-maxdepth", f"{depth}"] if depth is not None else []
proc = subprocess.run( 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 check=True, stdout=subprocess.PIPE
) )
return list_from_print0(proc.stdout) return list_from_print0(proc.stdout)