diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-08-22 21:33:38 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-08-23 11:32:23 +0200 |
commit | fb51ce3295929947555f4883054f210a53d9fbdf (patch) | |
tree | e0b77667f01f75d0d16156eb576bea4c7638c390 /test/integration/test-no-fds-leaked-to-maintainer-scripts | |
parent | ab59037f9e62bf7ab7eb859c26cd19882d17ee04 (diff) |
do dpkg --configure before --remove/--purge --pending
Commit 7ec343309b7bc6001b465c870609b3c570026149 got us most of the way,
but the last mile was botched by having the pending calls in the wrong
order as this way we potentially 'force' dpkg to remove/purge a package
it doesn't want to as another package still depends on it and the
replacement isn't fully installed yet.
So what we do now is a configure before remove and purge (all with
--no-triggers) and finishing off with another configure pending call to
take care of the triggers.
Note that in the bugreport example our current planner is forcing dpkg
to remove the package earlier via --force-depends which we could do for
the pending calls as well and could be used as a workaround, but we want
to do less forcing eventually.
Closes: 835094
Diffstat (limited to 'test/integration/test-no-fds-leaked-to-maintainer-scripts')
-rwxr-xr-x | test/integration/test-no-fds-leaked-to-maintainer-scripts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/integration/test-no-fds-leaked-to-maintainer-scripts b/test/integration/test-no-fds-leaked-to-maintainer-scripts index 21b394055..baf85e311 100755 --- a/test/integration/test-no-fds-leaked-to-maintainer-scripts +++ b/test/integration/test-no-fds-leaked-to-maintainer-scripts @@ -79,6 +79,7 @@ status half-configured $PKGNAME 1.0 status half-installed $PKGNAME 1.0 status config-files $PKGNAME 1.0 status config-files $PKGNAME 1.0 +startup packages configure startup packages purge remove $PKGNAME 1.0 <none> purge $PKGNAME 1.0 <none> |