do unpacks before configures in SmartConfigure
authorDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 23 May 2013 10:14:56 +0000 (12:14 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 9 Jun 2013 13:12:07 +0000 (15:12 +0200)
commit42d51f333e8ef522fed02cdfc48663488d56c3a3
tree1126b451b713419101f44764f425bb5688a62995
parent66706285737a895d0baf64c2387c58d5211be4f9
do unpacks before configures in SmartConfigure

Splits the big loop over dependencies in SmartConfigure which unpacks and
configures dependencies into two loops and reverse their order, so that all
dependencies which need to be unpacked are handled first and only after that
configures are issued for dependencies.

This is needed as otherwise the unpack of a (new) dependency will be issued
in between a configure call for two (or more) packages which form a loop,
which means the configure calls aren't part of the same dpkg call and
therefore dpkg bails out.

Such tight loops should really be avoided as they are usually wrong – and in
reality the dependencies in libreoffice were greatly simplified thanks to
Rene Engelhard so the problem is gone for the benefit of all.

Closes: 707578
apt-pkg/packagemanager.cc
debian/changelog
test/integration/test-very-tight-loop-configure-with-unpacking-new-packages [new file with mode: 0755]