ICU-208 remove the current symlink even if the

current version directory is still present, but is the only one
(w/o the libraries, tools won't work anyway)

X-SVN-Rev: 2824
This commit is contained in:
Yves Arrouye 2000-10-27 22:52:32 +00:00
parent 846befb00f
commit 21c32ab829
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ case "$1" in
remove|upgrade|deconfigure)
# Adjust the current ICU link in /usr/lib/icu
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/@VERSION@\//d' -e 's,.*/\([^/]*\)/$,\1,p' | head -1`
cd /usr/lib/icu
rm -f current
if test x"$icucurrent" != x

View File

@ -98,7 +98,7 @@ debian/%: debian/%.in
cd $(builddir) \
&& CONFIG_FILES=../$@ CONFIG_HEADERS= $(SHELL) ./config.status
DEBIAN_FILES = icu.conffiles icu.postinst icu.prerm
DEBIAN_FILES = icu.conffiles icu.postinst icu.prerm libicu16.prerm
# Build architecture-dependent files here.
binary-arch: build install $(addprefix debian/,$(DEBIAN_FILES))

View File

@ -77,7 +77,7 @@ fi
%preun -n libicu16
# Adjust the current ICU link in /usr/lib/icu
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/1.6.0.1\//d -e 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
cd /usr/lib/icu
rm -f current
if test x"$icucurrent" != x