]> git.saurik.com Git - apt.git/commit - apt-pkg/deb/dpkgpm.cc
ensure proper teardown in dpkg error cases
authorDavid Kalnischkies <david@kalnischkies.de>
Sat, 22 Mar 2014 20:35:57 +0000 (21:35 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Sat, 22 Mar 2014 20:48:49 +0000 (21:48 +0100)
commitd151adbf2cc4d23c240c6c4fcfbfda439a98c36f
tree8568d8cfb43868e4a3c26d94ff9042530f0bf2dd
parentce62f1def6565375ce9c56eb1237ccdc0ca138ba
ensure proper teardown in dpkg error cases

We have to properly close our pseudo terminals even in error cases
before we call post-invoke scripts. This is done now by breaking from
the dpkg calling loop instead of copying the handling, which did it in
the wrong order before.

This also ensures that our state file is written in error cases to
record autobit and co as this was forgotten before.

Closes: 738969
apt-pkg/deb/dpkgpm.cc
test/integration/test-apt-progress-fd-error-postinst [deleted file]
test/integration/test-failing-maintainer-scripts [new file with mode: 0755]