diff options
| -rw-r--r-- | debian/changelog | 1 | ||||
| -rwxr-xr-x | debian/rules | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index f33f4ed5..462f60d1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,7 @@ python-apt (0.7.94.1) UNRELEASED; urgency=low * Pass --link-doc=python-apt to dh_installdocs. * Install examples to python-apt-doc instead of python-apt. * tests/test_all.py: Write information header to stderr, not stdout. + * Build documentation only when needed (when building python-apt-doc). -- Julian Andres Klode <jak@debian.org> Thu, 11 Mar 2010 19:33:26 +0100 diff --git a/debian/rules b/debian/rules index a1ef5441..a65c5cfd 100755 --- a/debian/rules +++ b/debian/rules @@ -9,11 +9,13 @@ export CFLAGS=-Wno-write-strings -DCOMPAT_0_7 override_dh_auto_build: dh_auto_build - python setup.py build_sphinx override_dh_installdocs: + set -e; if [ -z $(filter -a,$(DH_INTERNAL_OPTIONS)) ]; then \ + python setup.py build_sphinx; \ + dh_installdirs -ppython-apt-doc usr/share/doc/python-apt; \ + fi dh_installdirs -ppython-apt-dev usr/share/doc/python-apt - dh_installdirs -ppython-apt-doc usr/share/doc/python-apt dh_installdocs --link-doc=python-apt override_dh_strip: |
