summaryrefslogtreecommitdiff
path: root/tests/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cache.py')
-rw-r--r--tests/cache.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/cache.py b/tests/cache.py
index 3ec87b40..34535e68 100644
--- a/tests/cache.py
+++ b/tests/cache.py
@@ -6,6 +6,7 @@
import apt_pkg
import sys
+
def main():
apt_pkg.init()
cache = apt_pkg.GetCache()
@@ -44,6 +45,7 @@ def main():
print "\r%i/%i=%.3f%% " % (i,all,(float(i)/float(all)*100)),
+
if __name__ == "__main__":
main()
sys.exit(0)