~ubuntu-branches/ubuntu/raring/apt-xapian-index/raring-proposed

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Enrico Zini
  • Date: 2010-05-24 17:31:08 UTC
  • mfrom: (5.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20100524173108-3vvrnppxh6qty33b
Tags: 0.37
Move #DEBHELPER# at the beginning of postinst, otherwise
update-python-modules -p doesn't seem to always work. Closes: #581811

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh -e
2
2
 
 
3
#DEBHELPER#
 
4
 
3
5
case "$1" in
4
6
    configure)
5
7
        # Just checking the main directory with -d should prevent the indexing
11
13
                if [ ! -x /usr/sbin/policy-rc.d ] || /usr/sbin/policy-rc.d apt-xapian-index start
12
14
                then
13
15
                        echo "apt-xapian-index: Building new index in background..."
 
16
                        # Ensure that we can use our module. See #537376
 
17
                        update-python-modules -p
14
18
                        nice /usr/sbin/update-apt-xapian-index --quiet &
15
19
                fi
16
20
        fi
17
21
        ;;
18
22
esac
19
23
 
20
 
#DEBHELPER#
21
 
 
22
24
exit 0