From 2cfce7a05a4c71c79fe62b83a72fe1d83e11e22b Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 27 May 2005 10:16:19 +0000 Subject: * make better use of the cachefile in the depcache, avoid a stupid double depcache building --- apt/progress.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'apt/progress.py') diff --git a/apt/progress.py b/apt/progress.py index 98493c92..7fbfc09a 100644 --- a/apt/progress.py +++ b/apt/progress.py @@ -1,3 +1,4 @@ +import sys class OpProgress: """ Abstract class to implement reporting on cache opening """ @@ -60,3 +61,12 @@ class CdromProgress: pass def ChangeCdrom(self): pass + +# module test code +if __name__ == "__main__": + import apt_pkg + apt_pkg.init() + progress = OpTextProgress() + cache = apt_pkg.GetCache(progress) + depcache = apt_pkg.GetDepCache(cache) + depcache.Init(progress) -- cgit v1.2.3