summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-05-31 10:52:54 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-05-31 10:52:54 +0000
commit6e5b269ebc9bdc674a2866c798bf5aa38e01ac25 (patch)
tree5f3ed4bd7b92e15d9d3a93d206abd714b9e865ab /tests
parenta0ecde5eca76ceb2155ab4322c678ef2b41a7965 (diff)
downloadpython-apt-6e5b269ebc9bdc674a2866c798bf5aa38e01ac25.tar.gz
* added the code that updates /etc/enviroment
Diffstat (limited to 'tests')
-rw-r--r--tests/apt-test.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/apt-test.py b/tests/apt-test.py
index 714101d9..4e41ae00 100644
--- a/tests/apt-test.py
+++ b/tests/apt-test.py
@@ -3,8 +3,5 @@ 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"
+ print cache
+