From aff4a3d2c1280da136198463a51fff5026194048 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 20 Sep 2005 11:36:25 +0000 Subject: * added __iter__ support to apt/cache.py --- tests/apt-test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/apt-test.py') diff --git a/tests/apt-test.py b/tests/apt-test.py index f1bc5593..6205cf60 100644 --- a/tests/apt-test.py +++ b/tests/apt-test.py @@ -7,8 +7,7 @@ if __name__ == "__main__": progress = apt.progress.OpTextProgress() cache = apt.Cache(progress) print cache - for name in cache.keys(): - pkg = cache[name] + for pkg in cache: if pkg.isUpgradable: pkg.markInstall() for pkg in cache.getChanges(): -- cgit v1.2.3