Package: dpkg
Version: 1.17.22
Severity: important
Hi,
while debugging another broken symlink-to-directory transition
(libavifile-0.7-dev) I noticed that the proper maintainer script content
is there, except for a superfluous slash after the PATHNAME argument:
dpkg-maintscript-helper symlink_to_dir /usr/share/doc/libavifile-0.7-dev/
/usr/share/doc/libavifile-0.7-common 1:0.7.48~20090503.ds-16.1~ -- "$@" -- "$@"
Digging into d-m-h, the old symlink is not recognized as a symlink and
therefore no action is performed. This is because
[ -h /path/to/link ]
will succeed but
[ -h /path/to/link/ ]
will fail.
Maybe
local SYMLINK="${1%/}"
could help (for single trailing slashes)
While the packages should not give such incorrect arguments,
I think it would be easiest to fix d-m-h to cope with this.
Andreas
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]