[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#165770: dpkg: postinst assumes /usr/info/dir exists if /usr/info/ does



Package: dpkg
Version: 1.10.9

| Setting up dpkg (1.10.9) ...
| Moving /usr/info/dir to /usr/share/info/dir.
| mv: cannot stat `/usr/info/dir': No such file or directory

hmm...

| buildd@netwinder:~$ ls chroot/unstable/usr/info/
| buildd@netwinder:~$

and the postinst?

| if [ -d /usr/info -a ! -L /usr/info -a ! -L /usr/info/dir ]; then
|         echo Moving /usr/info/dir to /usr/share/info/dir.
|         mv /usr/info/dir /usr/share/info/dir

[...]

| fi

Spot the obvious flaw.. that only checks that /usr/info/dir is not a
symlink not that it exists at all....

-- 
James



Reply to: