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
=== modified file 'aptdaemon/worker.py'
--- aptdaemon/worker.py 2011-09-18 06:31:09 +0000
+++ aptdaemon/worker.py 2011-09-28 12:08:26 +0000
@@ -272,6 +272,17 @@
272 self._mark_packages_for_downgrade(downgrade, resolver)272 self._mark_packages_for_downgrade(downgrade, resolver)
273 self._resolve_depends(trans, resolver)273 self._resolve_depends(trans, resolver)
274 self._check_obsoleted_dependencies(trans)274 self._check_obsoleted_dependencies(trans)
275 # do an additional resolver run to ensure that the autoremove
276 # never leaves the cache in a inconsistent state, see bug
277 # LP: #659111 for the rational, essentially this may happen
278 # if a package is marked install during problem resolving but
279 # is later no longer required. the resolver deals with that
280 #
281 # alternatively we need to add a addtional
282 # "if pkg.marked_install and pkg.is_auto_removable: pkg.mark_keep()"
283 # to the _check_obsoleted_dependencies() (and fix python-apt to
284 # show is_auto_removable even when not installed)
285 self._resolve_depends(trans, resolver)
275 if not simulate:286 if not simulate:
276 self._apply_changes(trans)287 self._apply_changes(trans)
277288

Subscribers

People subscribed via source and target branches

to status/vote changes: