|
32 | 32 | FILTER_EXE = os.path.join(TOOLS_PATH, "filter.py") |
33 | 33 | POSTPROCESSOR_EXE = os.path.join(TOOLS_PATH, "postprocessor.py") |
34 | 34 | PANDOC_EXE = "pandoc" |
35 | | -PANDOC_DOWNLOAD = ("https://github.com/jgm/pandoc/releases/download/" |
36 | | - "2.18/pandoc-2.18-1-amd64.deb") |
37 | | -PANDOC_SHA256 = ("bc6e8e401720d7cec28c230a0cb6f8bc" |
38 | | - "f3ffb502155e7c9372ca15fbf9509aed") |
39 | 35 | BRANCH_ORDERING = [ # Format: (REGEX, ORDER, DEFAULT) |
40 | 36 | (r"v?\d+(?:\.\d+)*(?:\.x)*", 0, True), |
41 | 37 | (r".*", 1, False)] |
@@ -76,14 +72,7 @@ def convert_doc(src_path, to_path, branch, branches): |
76 | 72 | def install_dependencies(): |
77 | 73 | subprocess.run([sys.executable, "-m", "pip", "install", "beautifulsoup4"], |
78 | 74 | check=True) |
79 | | - with TemporaryDirectory() as temp: |
80 | | - subprocess.run(["curl", "--location", "--output", "pandoc.deb", |
81 | | - PANDOC_DOWNLOAD], check=True, cwd=temp) |
82 | | - subprocess.run(["sha256sum", "--check", "--strict", "--quiet"], |
83 | | - input="%s *pandoc.deb" % PANDOC_SHA256, text=True, |
84 | | - check=True, cwd=temp) |
85 | | - subprocess.run(["sudo", "apt", "install", "--assume-yes", |
86 | | - "./pandoc.deb"], check=True, cwd=temp) |
| 75 | + subprocess.run(["sudo", "apt", "install", "--assume-yes", "pandoc"], check=True) |
87 | 76 |
|
88 | 77 |
|
89 | 78 | def natural_sort_key(s): |
|
0 commit comments