diff options
| -rw-r--r-- | tests/apt-test.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/apt-test.py b/tests/apt-test.py new file mode 100644 index 00000000..714101d9 --- /dev/null +++ b/tests/apt-test.py @@ -0,0 +1,10 @@ +import apt + +if __name__ == "__main__": + progress = apt.progress.OpTextProgress() + cache = apt.Cache(progress) + print "Packages count: %s" % len(cache.keys()) + for key in cache.keys(): + p = cache[key] + if p == None or p.Name() == None or p.Name == "" or p._pkg == None: + print "Something strange is going on" |
