1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-07-11 17:18:29 +00:00

Run apt as root

This commit is contained in:
Unrud 2020-02-27 02:39:14 +01:00
parent b2c3f38766
commit a32f160d4f

View file

@ -29,7 +29,8 @@ TEMPLATE_PATH = os.path.join(TOOLS_PATH, "template.html")
FILTER_EXE = os.path.join(TOOLS_PATH, "filter.py")
POSTPROCESSOR_EXE = os.path.join(TOOLS_PATH, "postprocessor.py")
PANDOC_EXE = "pandoc"
PANDOC_DOWNLOAD = "https://github.com/jgm/pandoc/releases/download/2.9.2/pandoc-2.9.2-1-amd64.deb"
PANDOC_DOWNLOAD = ("https://github.com/jgm/pandoc/releases/download/"
"2.9.2/pandoc-2.9.2-1-amd64.deb")
def convert_doc(src_path, to_path, branch, branches):
@ -62,8 +63,8 @@ def install_dependencies():
with TemporaryDirectory() as temp:
subprocess.run(["curl", "--location", "--output", "pandoc.deb",
PANDOC_DOWNLOAD], check=True, cwd=temp)
subprocess.run(["apt", "install", "--assume-yes", "./pandoc.deb"],
check=True, cwd=temp)
subprocess.run(["sudo", "apt", "install", "--assume-yes",
"./pandoc.deb"], check=True, cwd=temp)
def natural_sort_key(s):