source: software-center/trunk/fuentes/debian/software-center.postinst @ 408

Last change on this file since 408 was 401, checked in by mabarracus, 5 years ago

Added 16.01+16.04.20160119 sources

File size: 597 bytes
Line 
1#!/bin/sh
2
3set -e
4
5#DEBHELPER#
6
7if [ "$1" = "triggered" ] || [ "$1" = "configure" ]; then
8    # update-software-center needs python-aptdaemon to be configured
9    # but we aren't guaranteed this due to debian bug #671711
10
11    pyaptd_status=`dpkg-query -f '${Status}' -W python-aptdaemon`
12    if [ "$pyaptd_status" = "install ok installed" ]; then
13        update-software-center --triggered "$2" || true
14    fi
15    exit 0
16fi
17
18# make sure we update the index so that on first install
19# we have something to show (LP: #617397)
20if [ "$1" = "configure" ];then
21    update-apt-xapian-index -u || true
22fi
Note: See TracBrowser for help on using the repository browser.