summaryrefslogtreecommitdiff
path: root/test/interactive-helper/CMakeLists.txt
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2021-08-28 15:55:09 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2021-08-28 22:21:35 +0200
commitc7e368aafe099dcd966cf5994ae7fb418d268278 (patch)
treefccc88edd767f1608e9f1bfb6f0f306fb9df6d91 /test/interactive-helper/CMakeLists.txt
parente4701219cf821d24f7f48ed6e4d8123c11d47c8b (diff)
Stop autoremover from endlessly exploring cyclic providers
fullyExplored is needed to keep track of having explored all providers of a package name, while Marked is tracking if we have explored a given real package (along its chosen version), so we should stop MarkPackage from exploring a (real) package if it is marked and let fullyExplored only guard the looping over the individual dependencies. The testcase is deceptively simple, but in practice only an ecosystem like rust who makes heavy use of cyclic dependency relations intermixed with versioned provides actually triggers this as seen by the buggy code being in use for four months in Debian and Ubuntu development releases. (easier to trigger if most packages are marked manual installed) Note that the testcase is successful already due to the earlier changes as we exit the recursion eventually and all packages are marked as they need to be already, but this fix does work standalone as well. Closes: #992993
Diffstat (limited to 'test/interactive-helper/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions