~ubuntu-branches/ubuntu/wily/vlc/wily

« back to all changes in this revision

Viewing changes to debian/vlc-nox.preinst

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2012-03-28 13:29:37 UTC
  • mfrom: (3.5.40 sid)
  • Revision ID: package-import@ubuntu.com-20120328132937-n8s6h0bt500yw3xg
Tags: 2.0.1-3
Replace symlink by directory in /usr/share/doc/vlc-nox.
(Closes: #665743, LP: #964449)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
case "$1" in
 
5
        upgrade)
 
6
                # Make sure /usr/share/doc/vlc-nox doesn't exist or is not a symlink
 
7
                # before the unpacking (which will put the directory back) - #665743
 
8
                if dpkg --compare-versions "$2" le "2.0.1-3" && test -L "/usr/share/doc/vlc-nox"; then
 
9
                        rm /usr/share/doc/vlc-nox
 
10
                fi
 
11
                ;;
 
12
esac
 
13
 
 
14
#DEBHELPER#