Merge lp:~mvo/aptdaemon/fix-659111 into lp:aptdaemon

Proposed by Michael Vogt
Status: Needs review
Proposed branch: lp:~mvo/aptdaemon/fix-659111
Merge into: lp:aptdaemon
Diff against target: 20 lines (+11/-0)
1 file modified
aptdaemon/worker.py (+11/-0)
To merge this branch: bzr merge lp:~mvo/aptdaemon/fix-659111
Reviewer Review Type Date Requested Status
Aptdaemon Developers Pending
Review via email: mp+77311@code.launchpad.net

Description of the change

Simple fix for #659111 - there is alternative approach, see the comment in the MP.

To post a comment you must log in.

Unmerged revisions

699. By Michael Vogt

aptdaemon/worker.py: fix for #659111 with lengthy comment

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'aptdaemon/worker.py'
2--- aptdaemon/worker.py 2011-09-18 06:31:09 +0000
3+++ aptdaemon/worker.py 2011-09-28 12:08:26 +0000
4@@ -272,6 +272,17 @@
5 self._mark_packages_for_downgrade(downgrade, resolver)
6 self._resolve_depends(trans, resolver)
7 self._check_obsoleted_dependencies(trans)
8+ # do an additional resolver run to ensure that the autoremove
9+ # never leaves the cache in a inconsistent state, see bug
10+ # LP: #659111 for the rational, essentially this may happen
11+ # if a package is marked install during problem resolving but
12+ # is later no longer required. the resolver deals with that
13+ #
14+ # alternatively we need to add a addtional
15+ # "if pkg.marked_install and pkg.is_auto_removable: pkg.mark_keep()"
16+ # to the _check_obsoleted_dependencies() (and fix python-apt to
17+ # show is_auto_removable even when not installed)
18+ self._resolve_depends(trans, resolver)
19 if not simulate:
20 self._apply_changes(trans)
21

Subscribers

People subscribed via source and target branches

to status/vote changes: