diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-05-27 10:16:19 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-05-27 10:16:19 +0000 |
| commit | 2cfce7a05a4c71c79fe62b83a72fe1d83e11e22b (patch) | |
| tree | ea3cf7c03fae147ad9d89b523f90a3f80a6d136d /apt/progress.py | |
| parent | f5ffcecfc7630c019641e45c2185ef058e62e1a4 (diff) | |
| download | python-apt-2cfce7a05a4c71c79fe62b83a72fe1d83e11e22b.tar.gz | |
* make better use of the cachefile in the depcache, avoid a stupid double depcache building
Diffstat (limited to 'apt/progress.py')
| -rw-r--r-- | apt/progress.py | 10 |
1 files changed, 10 insertions, 0 deletions
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) |
