summaryrefslogtreecommitdiff
path: root/debian/dpkg.postinst
diff options
context:
space:
mode:
authorAdam Heath <doogie@debian.org>2003-10-27 17:06:44 +0000
committerAdam Heath <doogie@debian.org>2003-10-27 17:06:44 +0000
commitedac789aafd26d093d5c70120e983fc852193517 (patch)
tree30f56aec62f005a9b4f6c92037ffa38c26a96416 /debian/dpkg.postinst
parent35f2fff26e0dd56943d5f8525522e2925721d604 (diff)
downloaddpkg-edac789aafd26d093d5c70120e983fc852193517.tar.gz
Don't assume /usr/info/dir exists if /usr/info does.
Diffstat (limited to 'debian/dpkg.postinst')
-rwxr-xr-xdebian/dpkg.postinst3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst
index b29de4725..38d7f196e 100755
--- a/debian/dpkg.postinst
+++ b/debian/dpkg.postinst
@@ -114,7 +114,8 @@ OK.
esac
fi
-if [ -d /usr/info -a ! -L /usr/info -a ! -L /usr/info/dir ]; then
+if [ -d /usr/info -a ! -L /usr/info -a ! -L /usr/info/dir \
+ -a -f /usr/info/dir ]; then
echo Moving /usr/info/dir to /usr/share/info/dir.
mv /usr/info/dir /usr/share/info/dir
if [ -f /usr/info/dir.old ]; then