From d40c6a02575f1777e910c8536d97011c7abf93fe Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Sun, 26 May 2002 06:32:57 +0000 Subject: [PATCH] Fix /usr/info/dir moving/symlink code. --- ChangeLog | 4 ++++ debian/dpkg.postinst | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index bf99769d..14d56069 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun May 26 01:28:00 CDT 2002 Adam Heath + + * debian/dpkg.postinst: Fix /usr/info/dir moving/symlink code. + Sun May 26 01:10:24 CDT 2002 Adam Heath * Fix some mis-merging of the 1.9 branch: diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst index 46720a2f..c190c9fc 100755 --- a/debian/dpkg.postinst +++ b/debian/dpkg.postinst @@ -123,10 +123,10 @@ if [ -d /usr/doc -a ! -e /usr/doc/dpkg -a -d /usr/share/doc/dpkg ] ; then fi -if [ -f /usr/info/dir ] ; then +if [ ! -L /usr/info/dir ]; then echo "Moving /usr/info/dir to /usr/share/info/dir, and creating /usr/info/dir symlink." - cp -a /usr/info/dir /usr/share/info/dir - ln -f ../share/info/dir /usr/info/dir + mv /usr/info/dir /usr/share/info/dir + ln -sf ../share/info/dir /usr/info/dir fi -- 2.39.5