Package: coreboot / 24.12+dfsg-2

set-documentation-version-as-patch-not-build-edit.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Ahmad Khalifa <ahmad@khalifa.ws>
Date: Fri, 15 Nov 2024 14:17:10 +0000
Forwarded: not-needed
Subject: [PATCH] Set Documentation version as patch, not build edit

---
 Documentation/conf.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -7,12 +7,14 @@
 # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
 
 import subprocess
+import os
 
 project = 'coreboot'
 copyright = 'CC-by 4.0 the coreboot project'
 author = 'the coreboot project'
 
-release = subprocess.check_output(('git', 'describe')).decode("utf-8")
+# release = subprocess.check_output(('git', 'describe')).decode("utf-8")
+release = os.environ['DEB_VERSION']
 # The short X.Y version.
 version = release.split("-")[0]