5 def have_needed_diff_support():
6 if not os.path.exists("/usr/bin/diff"):
9 ld_cmd = subprocess.Popen(
10 ["/usr/bin/diff", "--help"],
11 stdout=subprocess.PIPE,
12 stderr=subprocess.STDOUT,
15 ld_out = ld_cmd.stdout.read().decode()
18 return "-line-format" in ld_out
21 if not have_needed_diff_support():
22 config.unsupported = True