~ubuntu-branches/ubuntu/breezy/libx11/breezy

« back to all changes in this revision

Viewing changes to debian/libx11-6.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Stone
  • Date: 2005-09-30 16:30:55 UTC
  • Revision ID: james.westby@ubuntu.com-20050930163055-dfterq3qv2h111u0
Tags: 1:6.2.1+cvs.20050722-8
Fix non-UTF-8 locales by fixing generation of compose.dir, locale.alias,
and locale.dir in nls/ (closes: Ubuntu#13724).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
case "$1" in
 
4
  upgrade)
 
5
    if dpkg --compare-versions "$2" le-nl "1:6.2.1+cvs.20050711-1"; then
 
6
      if test -L /usr/lib/X11/locale && \
 
7
         test "$(readlink /usr/lib/X11/locale)" = "../../share/X11/locale"; then
 
8
        echo "Removing /usr/lib/X11/locale symlink."
 
9
        rm /usr/lib/X11/locale
 
10
        mkdir /usr/lib/X11/locale
 
11
      fi
 
12
    fi
 
13
  ;;
 
14
esac