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

« back to all changes in this revision

Viewing changes to debian/lib32ncurses5-dev.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:
8
8
    if [ ! -L /usr/share/doc/$PACKAGE ] && \
9
9
        [ -d /usr/share/doc/$PACKAGE ]; then
10
10
        if rmdir /usr/share/doc/$PACKAGE 2>/dev/null; then
11
 
            ln -sf libtinfo5 /usr/share/doc/$PACKAGE
 
11
            ln -sf lib32tinfo5 /usr/share/doc/$PACKAGE
12
12
        fi
13
13
    fi
14
14
fi
15
15
 
 
16
if dpkg --compare-versions "$2" lt-nl 5.9-10; then
 
17
    # Fix symlink target
 
18
    if [ -L /usr/share/doc/$PACKAGE ] && \
 
19
        [ "$(readlink -q /usr/share/doc/$PACKAGE)" = "libtinfo5" ]; then
 
20
        ln -snf lib32tinfo5 /usr/share/doc/$PACKAGE
 
21
    fi
 
22
fi
 
23
 
16
24
# Remove spurious symlink created by ldconfig (see #224450)
17
25
if [ "$1" = "configure" -a -L /usr/lib32/libncurses.so.5 ]; then
18
26
    rm -f /usr/lib32/libncurses.so.5