diff options
Diffstat (limited to 'tests/old/test_enhances.py')
-rw-r--r-- | tests/old/test_enhances.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/old/test_enhances.py b/tests/old/test_enhances.py new file mode 100644 index 0000000..79aad9a --- /dev/null +++ b/tests/old/test_enhances.py @@ -0,0 +1,16 @@ +#!/usr/bin/python3 + +import apt + +cache = apt.Cache() + +for pkg in cache: + if pkg.installed and pkg.installed.enhances: + s = "%s enhances:" % pkg.name + for or_list in pkg.installed.enhances: + for enhances in or_list.or_dependencies: + s += " %s" % enhances.name + if enhances.name in cache and not cache[enhances.name].is_installed: + s += "(*missing*) " + s += "," + print(s[:-1]) |