~ubuntu-branches/ubuntu/trusty/ncurses/trusty

« back to all changes in this revision

Viewing changes to debian/lib32tinfo5.postinst

  • Committer: Package Import Robot
  • Author(s): Sven Joachim
  • Date: 2012-06-27 17:20:15 UTC
  • mfrom: (3.4.13 sid)
  • Revision ID: package-import@ubuntu.com-20120627172015-m84wahfjn4nfjake
Tags: 5.9-10
* Drop the dependency of the biarch packages on libtinfo5
  (Closes: #678440).
  - Convert /usr/share/doc/lib{32,64}tinfo5 back to directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
set -e
3
 
 
4
 
PACKAGE=lib32tinfo5
5
 
 
6
 
if dpkg --compare-versions "$2" lt-nl 5.9-7; then
7
 
    # Replace directory with symlink.
8
 
    if [ ! -L /usr/share/doc/$PACKAGE ] && \
9
 
        [ -d /usr/share/doc/$PACKAGE ]; then
10
 
        if rmdir /usr/share/doc/$PACKAGE 2>/dev/null; then
11
 
            ln -sf libtinfo5 /usr/share/doc/$PACKAGE
12
 
        fi
13
 
    fi
14
 
fi
15
 
 
16
 
#DEBHELPER#
17
 
 
18
 
exit 0