diff options
author | Adam Heath <doogie@debian.org> | 2002-05-26 06:32:57 +0000 |
---|---|---|
committer | Adam Heath <doogie@debian.org> | 2002-05-26 06:32:57 +0000 |
commit | d40c6a02575f1777e910c8536d97011c7abf93fe (patch) | |
tree | c244eb5006d59e5ded7d440c78a541456f5527bd /debian/dpkg.postinst | |
parent | 32b0e5ba5c387684314b6fba382fa9e8e3a8fb5b (diff) | |
download | dpkg-d40c6a02575f1777e910c8536d97011c7abf93fe.tar.gz |
Fix /usr/info/dir moving/symlink code.
Diffstat (limited to 'debian/dpkg.postinst')
-rwxr-xr-x | debian/dpkg.postinst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst index 46720a2f7..c190c9fca 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 |