~ubuntuone-control-tower/software-center/packaging-dailies

« back to all changes in this revision

Viewing changes to software-center.postinst

  • Committer: Rodney Dawes
  • Date: 2013-02-26 21:27:25 UTC
  • Revision ID: rodney.dawes@canonical.com-20130226212725-v5s4wwervoeekt40
Daily builds branch for software-center.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
#DEBHELPER#
 
6
 
 
7
if [ "$1" = "triggered" ] || [ "$1" = "configure" ]; then
 
8
 
 
9
    # update the application data
 
10
    update-software-center --triggered "$2" || true
 
11
    exit 0
 
12
fi
 
13
 
 
14
# make sure we update the index so that on first install
 
15
# we have something to show (LP: #617397)
 
16
if [ "$1" = "configure" ];then
 
17
    update-apt-xapian-index -u || true
 
18
fi
 
19
 
 
20
 
 
21
 
 
22