[gnome-build-meta/abderrahim/fwupd-markdown] core-deps/fwupd.bst: add patch to fix markdown check
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/abderrahim/fwupd-markdown] core-deps/fwupd.bst: add patch to fix markdown check
- Date: Thu, 21 Jul 2022 11:48:29 +0000 (UTC)
commit 338c7566c3710397b6ceea0d80824dbe56b0dacb
Author: Abderrahim Kitouni <abderrahim kitouni codethink co uk>
Date: Thu Jul 21 13:46:56 2022 +0200
core-deps/fwupd.bst: add patch to fix markdown check
elements/core-deps/fwupd.bst | 2 ++
files/fwupd/fix-version-check.patch | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+)
---
diff --git a/elements/core-deps/fwupd.bst b/elements/core-deps/fwupd.bst
index ba7726a12..6a125344d 100644
--- a/elements/core-deps/fwupd.bst
+++ b/elements/core-deps/fwupd.bst
@@ -3,6 +3,8 @@ kind: meson
sources:
- kind: tar
url: github_files:fwupd/fwupd/releases/download/1.8.2/fwupd-1.8.2.tar.xz
+- kind: patch
+ path: files/fwupd/fix-version-check.patch
build-depends:
- sdk/gobject-introspection.bst
diff --git a/files/fwupd/fix-version-check.patch b/files/fwupd/fix-version-check.patch
new file mode 100644
index 000000000..c6d9a114e
--- /dev/null
+++ b/files/fwupd/fix-version-check.patch
@@ -0,0 +1,20 @@
+diff --git a/docs/test-deps.py b/docs/test-deps.py
+index bc7c226bc..f699bf9ec 100755
+--- a/docs/test-deps.py
++++ b/docs/test-deps.py
+@@ -2,12 +2,13 @@
+ # SPDX-License-Identifier: LGPL-2.1+
+
+ import sys
+-import markdown
++import importlib.metadata
+
+ from distutils.version import LooseVersion
+
+ # https://github.com/fwupd/fwupd/pull/3337#issuecomment-858947695
+-if LooseVersion(markdown.version) < LooseVersion("3.3.3"):
++markdown_version = importlib.metadata.version("markdown")
++if LooseVersion(markdown_version) < LooseVersion("3.3.3"):
+ print("python3-markdown version 3.3.3 required for gi-docgen")
+ sys.exit(1)
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]