File: drop-sphinx-git.patch

package info (click to toggle)
python-neutron-lib 0.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,056 kB
  • ctags: 1,132
  • sloc: python: 4,980; sh: 90; makefile: 48
file content (22 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Drop git from sphinx config since git repo is not available
             during package builds.
Author: Corey Bryant <corey.bryant@canonical.com>
Forwarded: not-needed

--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -163,10 +163,10 @@
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
 # using the given strftime format.
 #html_last_updated_fmt = '%b %d, %Y'
-git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local",
-    "-n1"]
-html_last_updated_fmt = subprocess.Popen(
-    git_cmd, stdout=subprocess.PIPE).communicate()[0]
+#git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local",
+#    "-n1"]
+#html_last_updated_fmt = subprocess.Popen(
+#    git_cmd, stdout=subprocess.PIPE).communicate()[0]
 
 # If true, SmartyPants will be used to convert quotes and dashes to
 # typographically correct entities.