~videolan/vlc/stable-daily-packaging.xenial

« back to all changes in this revision

Viewing changes to debian/vlc-data.postinst

  • Committer: Benjamin Drung
  • Date: 2014-08-26 20:54:13 UTC
  • mfrom: (1.1.23 packaging)
  • Revision ID: bdrung@ubuntu.com-20140826205413-b4ctxq5brlls5j6s
Merge changes from 2.2.0~pre2-4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
#DEBHELPER#
5
5
 
 
6
check_and_remove() {
 
7
        if test -d "$1"; then
 
8
                rmdir --ignore-fail-on-non-empty "$1"
 
9
        fi
 
10
}
 
11
 
6
12
case "$1" in
7
13
        configure)
8
14
                # Remove empty /etc/vlc directory (to work around bug #584185).
9
 
                if dpkg --compare-versions "$2" le "2.1.1" && test -d "/etc/vlc"; then
10
 
                        rmdir --ignore-fail-on-non-empty /etc/vlc/lua/http/dialogs /etc/vlc/lua/http /etc/vlc/lua /etc/vlc
 
15
                if dpkg --compare-versions "$2" le "2.1.1"; then
 
16
                        check_and_remove /etc/vlc/lua/http/dialogs
 
17
                        check_and_remove /etc/vlc/lua/http
 
18
                        check_and_remove /etc/vlc/lua
 
19
                        check_and_remove /etc/vlc
11
20
                fi
12
21
                ;;
13
22
esac