diff options
author | joey <joey> | 2000-04-17 02:08:25 +0000 |
---|---|---|
committer | joey <joey> | 2000-04-17 02:08:25 +0000 |
commit | 921b93d3dde7824af7a3dbc5e2df51e733938c8d (patch) | |
tree | 002570c0cc104f0c37318047fde31402589f6ee8 /autoscripts | |
parent | 705be431f33d24a3ecc3b2de9d527f6768a6878f (diff) | |
download | debhelper-921b93d3dde7824af7a3dbc5e2df51e733938c8d.tar.gz |
r344: * Patch from Pedro Guerreiro to make install-docs only be called on
configure and remove/upgrade. Closes: #62513
Diffstat (limited to 'autoscripts')
-rw-r--r-- | autoscripts/postinst-doc-base | 4 | ||||
-rw-r--r-- | autoscripts/prerm-doc-base | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/autoscripts/postinst-doc-base b/autoscripts/postinst-doc-base index a53ed7bf..fce4d17e 100644 --- a/autoscripts/postinst-doc-base +++ b/autoscripts/postinst-doc-base @@ -1,3 +1,3 @@ -if command -v install-docs >/dev/null 2>&1; then - install-docs -i /usr/share/doc-base/#PACKAGE# +if [ "$1" = configure ] && command -v install-docs >/dev/null 2>&1; then + install-docs -i /usr/share/doc-base/#DOC-ID# fi diff --git a/autoscripts/prerm-doc-base b/autoscripts/prerm-doc-base index 339361a5..d2b07ebc 100644 --- a/autoscripts/prerm-doc-base +++ b/autoscripts/prerm-doc-base @@ -1,3 +1,4 @@ -if command -v install-docs >/dev/null 2>&1; then - install-docs -r #PACKAGE# +if [ "$1" = remove -o "$1" = upgrade ] && \ + command -v install-docs >/dev/null 2>&1; then + install-docs -r #DOC-ID# fi |