[Aptitude-devel] Bug#482365: aptitude proceeds with install without permission to do so

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Sat Feb 27 00:46:09 GMT 2016


Control: clone -1 -2
Control: reassign -2 apt-listchanges
Control: block -1 by -2
Control: tags -1 + moreinfo


Hi, apt-listchanges maintainers,

It looks like when this program dies, or is killed, the installation
proceeds anyway.  I think that confirmation is required, installations
should only proceed if there was a reply and that reply was "yes".

To reproduce:

- config=1 should be enabled

- aptitude installing/upgrading some package in which apt-listchanges is
  invoked

- kill apt-listchanges from another terminal, and see how aptitude
  proceeds


Perhaps this is caused by this:

  /etc/apt/apt.conf.d/20listchanges:DPkg::Pre-Install-Pkgs { "/usr/bin/apt-listchanges --apt || test $? -ne 10"; };


When killed, depending on the signal, the exit status is 137 or 143 (!=
10), so the exit status of the above is 0==success, as if it was
confirmed.

So I think that this should be changed to act as described above: when
confirmation is required, only let to proceed when there was a reply and
the reply is affirmative.


Cloning the bug and reassigning so you can see the whole history of this
bug.


Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>



More information about the Aptitude-devel mailing list