summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcachegen.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2023-07-07 14:24:52 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2023-07-07 14:28:59 +0200
commit68ef41ea912f4879b0ee43419c13a3a8c9bfcd22 (patch)
tree87e0c3dd974b9003f8320db0fea93ce82c47f149 /apt-pkg/pkgcachegen.cc
parent89dd48bdea93849246fc33b447d6d7ad52bb1c4b (diff)
Do not mark updates for install that are still phasing
This fixes an issue where phased updates gain new dependencies and cause them to be installed despite themselves not being installed. In the cause of investigation, it turned out that we also need to evaluate the candidate version at those early stage rather than the install version (which is only valid *after* MarkInstall). This does not fully resolve the problem: If an update pulls in a phased update, depends are still being installed. Resolving this while ensuring that phased updates cannot uninstall packages requires us to do a minimization of changes by trying to keep back each new install removal and then seeing if any dependency is being broken by it. This is more complex and will happen later.
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
0 files changed, 0 insertions, 0 deletions