summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2014-02-22 20:32:48 +0100
committerJulian Andres Klode <jak@debian.org>2014-02-22 20:32:48 +0100
commit7daf0144f4809b8f27d56d49d3a61ca67d77ead1 (patch)
tree66c93dd16fd8924af412bb21a052e9d6d1bb11ba /debian/rules
parente80e2ee5f2d6415028a0ca9d58a6714ac10a5a4b (diff)
downloadpython-apt-7daf0144f4809b8f27d56d49d3a61ca67d77ead1.tar.gz
debian/rules: Do not run dh_sphinxdoc -a
Running dh_sphinxdoc -a causes the build to FTBFS on buildds, because the sphinx documentation is not built. Only run dh_sphinxdoc if we are building the sphinx documentation.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 37366324..3ceeb205 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,11 @@ override_dh_install:
dh_movefiles
dh_install
+override_dh_sphinxdoc:
+ set -e; if [ -z $(filter -a,$(DH_INTERNAL_OPTIONS)) ]; then \
+ dh_sphinxdoc; \
+ fi
+
override_dh_installdocs:
set -e; if [ -z $(filter -a,$(DH_INTERNAL_OPTIONS)) ]; then \
python setup.py build_sphinx; \