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

Bug#814754: apt: improper usage of dpkg-maintscript-helper



Package: apt
Version: 1.2.3
Severity: important

Hi,

while debugging an issue found by piuparts on upgrading from jessie to
stretch I stumbled upon this debug output from dpkg-maintscript-helper:

  Setting up apt (1.2.3) ...
  Installing new version of config file /etc/apt/apt.conf.d/01autoremove ...
  Installing new version of config file /etc/cron.daily/apt ...
  Installing new version of config file /etc/kernel/postinst.d/apt-auto-removal ...
  usermod: no changes
  DEBUG: dpkg-maintscript-helper: Executing /usr/bin/dpkg-maintscript-helper rm_conffile in postinst of apt
  DEBUG: dpkg-maintscript-helper: CONFFILE=/etc/apt/apt.conf.d/20changelog PACKAGE=apt:amd64 LASTVERSION=1.0.3 ACTION=@ PARAM=--

This looks like dpkg-maintscript-helper gets called with the wrong
parameters ... how does apt.maintscript look like?

    rm_conffile /etc/apt/apt.conf.d/20changelog 1.0.3 -- "@"

yes, that's bullshit. Correct would be

    rm_conffile /etc/apt/apt.conf.d/20changelog 1.2.4~

So this has never worked since it was introduced in 2014 ...
Version bumped assuming the fixed version will be uploaded as 1.2.4.


Andreas


Reply to: