Package: dpkg
Version: 1.18.23
Severity: wishlist

Hi,

I recently created a maintscript file for holotz-castle to convert
symlinks to real directories on upgrade.

maintscript:

symlink_to_dir /usr/share/doc/holotz-castle /usr/share/doc/holotz-castle-data 
1.3.14-8~ holotz-castle
symlink_to_dir /usr/share/doc/holotz-castle-editor 
/usr/share/doc/holotz-castle-data 1.3.14-8~ holotz-castle-editor

Currently the syntax described in the man page is as follows:

 symlink_to_dir pathname old-target [prior-version [package]]

I was under the impression that symlink_to_dir will act on [package]
name but apparently maintscript without the $PACKAGE prefix will only
act on the first binary package. I find this behavior rather confusing
at the moment. For a package with ten binary packages this would
require up to ten different $PACKAGE.maintscript files which seems to
be impractical to me.

I would appreciate it if maintscript acted on [package] instead. If
you don't want to implement this feature, please consider to update
the man page of dpkg-maintscript-helper which should be more precise
why specifying [package] is needed at all.

Regards,

Markus

Reply via email to