ports/textproc/catfish/patches/patch-catfish_CatfishSearchEngine_py

14 lines
590 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
silence locate --help call that will always fail for us
Index: catfish/CatfishSearchEngine.py
--- catfish/CatfishSearchEngine.py.orig
+++ catfish/CatfishSearchEngine.py
@@ -805,7 +805,7 @@ class CatfishSearchMethod_Locate(CatfishSearchMethodEx
"regex": False
}
try:
- details = subprocess.check_output(["locate", "--help"])
+ details = subprocess.check_output(["locate", "--help"],stderr=subprocess.DEVNULL)
details = details.decode("utf-8")
if "--existing" in details:
caps["existing"] = True