Hi! On Thu, 2014-01-02 at 15:59:19 -0400, David Prévot wrote: > Package: dpkg > Version: 1.17.5 > Severity: normal
> While trying to use dpkg-maintscript-helper dir_to_symlink for a > package, the upgrade failed with: > > dpkg-maintscript-helper: error: last version is missing > > According to dpkg-maintscript-helper(1), prior-version is not mandatory, > but it seems that this statement is wrong. The code is wrong, I'm fixing that for 1.17.6, patch will be included in my next push. > The snippet added by dh_installdeb in the maintainer scripts was: > > dpkg-maintscript-helper dir_to_symlink /usr/share/php/AWSSDKforPHP > /usr/share/php -- "$@" Ideally you'd specify the version, so that this is not tried on each upgrade, though. > Side notes: > - the handling (once added a prior-version), seems pretty slow and > resource consuming. That's to be expected, given the sanity checks that need to be performed, and given that dpkg itself does not support this operation natively. > - it would be nice if the created symlink was related as expected in > policy, but that part might have to be handled in debhelper if not by > the maintainer itself. I don't quite understand what you mean here. Could you rephrase it somehow? > - it would also be nice if the leading slash were not mandatory, but > again, that expectation may be better handled in debhelper for > consistency. These are needed to distinguish what are the arguments to the dpkg-maintscript-helper command and what the ones for the maintainer script. > For the record, the accurate syntax for the result I expected seems to > be: > > dpkg-maintscript-helper dir_to_symlink /usr/share/php/AWSSDKforPHP . 2.5.0-2~ > -- "$@" Oh, perhaps with the comment above you mean that the symlinks are not created as mandated by policy, as in when they should be relative or absolute? If that's the case, yeah that's a Debian specific policy that should be encoded in debhelper, or taken care of by the maintainer. Thanks, Guillem -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org