This file is indexed.

config is in phonon4qt5-backend-null 4:4.10.0-2.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh

set -e

# START CONFIG[phonon4qt5-null-backend/isnt_functional]

. /usr/share/debconf/confmodule

# This function will show a warning about phonon4qt5-backend-null whenever phonon4qt5
# metapackage or phonon4qt5-backend-null is being installed
warn_about_phonon_backend_null()
{
    local package=`basename "$0" .postinst`
    local show_warning=0
    local recommended4qt5_backend="phonon4qt5-backend-vlc"
    local other_backends

    # Do not show the note when reconfiguring
    if [ "$1" = "reconfigure" ] || [ "DEBCONF_RECONFIGURE" = "1" ]; then
        return 0
    fi

    if [ "$1" = "configure" ]; then
        # Display the warning only if both (phonon4qt5 and phonon4qt5-backend-null)
        # are (about to be) installed. In order to avoid checking dpkg status
        # database, we can check Owners field of the debconf question.
        db_metaget phonon4qt5-backend-null/isnt_functional Owners
        OWNERS="`echo "$RET" | sed 's/, /\n/g'`"
        if echo "$OWNERS" | grep -q -e 'phonon4qt5$' -e 'phonon4qt5:' && echo "$OWNERS" | grep -q phonon4qt5-backend-null; then
            show_warning=1
        fi

        # Finally show the note if needed (and it wasn't seen already)
        db_fget phonon4qt5-backend-null/isnt_functional seen || true
        if [ "$RET" != "true" ] && [ "$show_warning" = "1" ]; then
            other_backends="`LC_ALL=C apt-cache showpkg phonon4qt5-backend | \
                            awk '/: *$/{go=0} {if (go==1) print $1;} /^Reverse Provides: *$/ {go=1}' | \
                            sort -u | \
                            grep -v -e phonon4qt5-backend-null -e "$recommended4qt5_backend" | \
                            awk '{printf ", " $1}'`"
            db_settitle phonon4qt5-backend-null/isnt_functional_title || true
            db_subst phonon4qt5-backend-null/isnt_functional recommended4qt5_backend "$recommended4qt5_backend"
            db_subst phonon4qt5-backend-null/isnt_functional other_backends "$other_backends"
            db_input high phonon4qt5-backend-null/isnt_functional || true
            db_go || true
        fi
    fi
}

warn_about_phonon_backend_null "$@"

# vim: set syntax=sh

# END CONFIG[phonon4qt5-null-backend/isnt_functional]