summarylogtreecommitdiffstats
path: root/0001-Do-not-download-pandoc.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-Do-not-download-pandoc.patch')
-rw-r--r--0001-Do-not-download-pandoc.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0001-Do-not-download-pandoc.patch b/0001-Do-not-download-pandoc.patch
new file mode 100644
index 000000000000..960d70131914
--- /dev/null
+++ b/0001-Do-not-download-pandoc.patch
@@ -0,0 +1,29 @@
+From f4eba18c684a952f916816b7a005744a4fb1418f Mon Sep 17 00:00:00 2001
+From: BrLi <brli@chakralinux.org>
+Date: Mon, 26 Apr 2021 14:38:31 +0800
+Subject: [PATCH 2/2] Do-not-download-pandoc
+
+---
+ forge.config.js | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/forge.config.js b/forge.config.js
+index 4cfe7b2a..8010d8e6 100644
+--- a/forge.config.js
++++ b/forge.config.js
+@@ -102,10 +102,10 @@ module.exports = {
+ try {
+ await fs.lstat(path.join(__dirname, `./resources/pandoc-${platform}-${arch}`))
+ } catch (err) {
+- await downloadPandoc(platform, arch)
++ console.log('\nSkip pandoc executable download on Arch')
+ }
+
+- await fs.copyFile(path.join(__dirname, `./resources/pandoc-${platform}-${arch}`), path.join(__dirname, './resources/pandoc'))
++ console.log('\nDo not copy pandoc executable, is taking cared of via PKGBUILD')
+
+ forgeConfig.packagerConfig.extraResource.push('./resources/pandoc')
+ } else {
+--
+2.31.1
+