Package: dpkg
Version: 1.17.5
Severity: normal

Hi,

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 snippet added by dh_installdeb in the maintainer scripts was:

dpkg-maintscript-helper dir_to_symlink /usr/share/php/AWSSDKforPHP 
/usr/share/php -- "$@"

Side notes:
- the handling (once added a prior-version), seems pretty slow and
  resource consuming.
- 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.
- it would also be nice if the leading slash were not mandatory, but
  again, that expectation may be better handled in debhelper for
  consistency.

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~ 
-- "$@"

Regards

David

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 
'oldstable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-rt-amd64 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dpkg depends on:
ii  libbz2-1.0   1.0.6-5
ii  libc6        2.17-97
ii  liblzma5     5.1.1alpha+20120614-2
ii  libselinux1  2.2.1-1
ii  tar          1.27-4
ii  zlib1g       1:1.2.8.dfsg-1

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt  0.9.14.2

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to