Commit ad247287 authored by Julian Andres Klode's avatar Julian Andres Klode

apt.Cache: Introduce fix_broken() binding

This is needed to fix broken systems.
parent 57b9c399
......@@ -137,6 +137,11 @@ class Cache(object):
apt_pkg.init_system()
self.open(progress)
def fix_broken(self):
# type: () -> None
"""Fix broken packages."""
self._depcache.fix_broken()
def _inc_changes_count(self):
# type: () -> None
"""Increase the number of changes"""
......
......@@ -286,6 +286,7 @@ class DepCache():
def commit(self, acquire_progress: AcquireProgress, install_progress: InstallProgress) -> None: ...
def upgrade(self, dist_upgrade: bool=True) -> bool: ...
def fix_broken(self) -> bool: ...
class Policy():
def get_priority(self, pkg: Union[Package, PackageFile]) -> int: ...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment