summaryrefslogtreecommitdiff
path: root/tests/apt-test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/apt-test.py')
-rw-r--r--tests/apt-test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/apt-test.py b/tests/apt-test.py
index 4e41ae00..6ae9f702 100644
--- a/tests/apt-test.py
+++ b/tests/apt-test.py
@@ -4,4 +4,11 @@ if __name__ == "__main__":
progress = apt.progress.OpTextProgress()
cache = apt.Cache(progress)
print cache
+ for name in cache.keys():
+ pkg = cache[name]
+ if pkg.IsUpgradable():
+ pkg.MarkInstall()
+ for pkg in cache.GetChanges():
+ print pkg.Name()
+ print "Broken: %s " % cache._depcache.BrokenCount