[Pkg-mono-svn-commits] [mono-tools] 04/09: Stop trying to generate documentation indices systemwide. This is better handled on a per-user basis by the monodoc browser when run interactively. (Closes: #479491, #611790, #615986)
Jo Shields
directhex at alioth.debian.org
Thu Oct 10 09:11:44 UTC 2013
This is an automated email from the git hooks/post-receive script.
directhex pushed a commit to branch master
in repository mono-tools.
commit 85fc18106da67ec38b11fe8cca3e9847acd938ed
Author: Jo Shields <directhex at apebox.org>
Date: Thu Oct 10 01:12:14 2013 +0200
Stop trying to generate documentation indices systemwide. This is better handled on a per-user basis by the monodoc browser when run interactively. (Closes: #479491, #611790, #615986)
---
debian/monodoc-browser.postinst | 48 +++++----------------------------------
debian/monodoc-browser.triggers | 1 -
2 files changed, 6 insertions(+), 43 deletions(-)
diff --git a/debian/monodoc-browser.postinst b/debian/monodoc-browser.postinst
index 7300c7a..643b618 100644
--- a/debian/monodoc-browser.postinst
+++ b/debian/monodoc-browser.postinst
@@ -1,45 +1,9 @@
-#!/bin/sh
-set -e
+#!/bin/sh -e
-case "$1" in
- configure)
-
- if [ "$2" = "" ]; then
- # On first install, generate the index (won't necessarily be triggered).
- /usr/bin/dpkg-trigger --by-package=monodoc-browser /usr/lib/monodoc/sources
- fi
-
- ;;
-
- triggered)
-
- # update-monodoc needs libgtk2.0-cil to be configured
- # but we aren't guaranteed this due to #671711
-
- # Try to register stuff manually (these commands are idempotent, so
- # it'll be fine when the real postinst is run later on)
-
- # We ignore all failures here. Either the stuff can be registered now—
- # in which case we'll do it—or it can't, in which case we cannot
- # proceed anyway. Failure isn't harmful.
- mono_gac_status=`dpkg-query -f '${Status}' -W mono-gac`
- if [ "$mono_gac_status" != "install ok installed" -a \
- -x /usr/share/cli-common/gac-install -a \
- -e /usr/share/cli-common/runtimes.d/mono ]; then
- /usr/share/cli-common/gac-install mono || true
- fi
-
- libgtk_cil_status=`dpkg-query -f '${Status}' -W libgtk2.0-cil`
- if [ "$libgtk_cil_status" != "install ok installed" -a \
- -x /usr/share/cli-common/gac-package-install -a \
- -e /usr/share/cli-common/packages.d/libgtk2.0-cil.installcligac ]; then
- /usr/share/cli-common/gac-package-install libgtk2.0-cil || true
- fi
-
- /usr/bin/update-monodoc || true
-
- ;;
-
-esac
+if [ -d /usr/lib/monodoc/search_index ]; then
+ rm -r /usr/lib/monodoc/search_index
+fi
#DEBHELPER#
+
+exit 0
diff --git a/debian/monodoc-browser.triggers b/debian/monodoc-browser.triggers
deleted file mode 100644
index f94effd..0000000
--- a/debian/monodoc-browser.triggers
+++ /dev/null
@@ -1 +0,0 @@
-interest /usr/lib/monodoc/sources
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mono/packages/mono-tools.git
More information about the Pkg-mono-svn-commits
mailing list