Skip to content

Commit 1a9e3e7

Browse files
add aarch type check fixes issue #293 (#303)
Co-authored-by: Jessica Tegner <jessica.tegner@outlook.com>
1 parent b2738b4 commit 1a9e3e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pypandoc/pandoc_download.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ def _get_pandoc_urls(version="latest"):
5858
response = urlopen("https://github.com/jgm/pandoc/releases/expanded_assets/"+version)
5959
content = response.read()
6060
# regex for the binaries
61-
processor_architecture = "arm" if platform.uname()[4].startswith("arm") else "amd"
61+
uname = platform.uname()[4]
62+
processor_architecture = "arm" if uname.startswith("arm") or uname.startswith("aarch") else "amd"
6263
regex = re.compile(r"/jgm/pandoc/releases/download/.*(?:"+processor_architecture+"|x86|mac).*\.(?:msi|deb|pkg)")
6364
# a list of urls to the binaries
6465
pandoc_urls_list = regex.findall(content.decode("utf-8"))

0 commit comments

Comments
 (0)