diff options
-rwxr-xr-x | check | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -90,6 +90,11 @@ class Runcmd: p = self.runcmd_unchecked(["which", name], stdout=DEVNULL) return p.returncode == 0 + def pandoc_is_newer(self): + """Is pandoc new enough for --citeproc""" + p = self.runcmd(["pandoc", "--help"], stdout=PIPE) + return "--citeproc" in p.stdout.decode("UTF-8") + def cargo(self, args, **kwargs): """Run cargo with arguments.""" self.runcmd(["cargo"] + args, **kwargs) @@ -329,6 +334,10 @@ def check_tooling(r): ] for command in commands: if not r.got_command(command): + if command == "pandoc-citeproc": + if r.pandoc_is_newer(): + r.msg(" Fortunately pandoc is new enough for --citeproc, no need for pandoc-citeproc") + continue sys.exit(f"can't find {command}, which is needed for test suite") if not r.got_command("daemonize") and not r.got_command("/usr/sbin/daemonize"): |