diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-06-03 09:07:45 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-06-03 09:07:45 +0000 |
| commit | ba52c2411c020e528e65450c7dfaf62525d45a78 (patch) | |
| tree | 2afa0c4710c6ef5eeb4cd3e01bfda6566a99a70c /apt/cache.py | |
| parent | 64ac76c04670fdf45da3c0ccab69d6427fd391e4 (diff) | |
| download | python-apt-ba52c2411c020e528e65450c7dfaf62525d45a78.tar.gz | |
* fixes, MarkedInstall() checks for "NewInstall()" now, we have "Upgrade()" to check for upgrades
Diffstat (limited to 'apt/cache.py')
| -rw-r--r-- | apt/cache.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt/cache.py b/apt/cache.py index 1390e145..f2e8f4b7 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -133,9 +133,9 @@ class FilteredCache(Cache): self._reapplyFilter() def CachePostChange(self): - Cache.CachePostChange(self) " called internally if the cache changes, emit a signal then " self._reapplyFilter() + Cache.CachePostChange(self) def cache_pre_changed(): print "cache pre changed" @@ -166,6 +166,8 @@ if __name__ == "__main__": print "Testing filtered cache" c = FilteredCache() + c.connect("cache_pre_change", cache_pre_changed) + c.connect("cache_post_change", cache_post_changed) c.Upgrade() c.SetFilter(MarkedChangesFilter()) print len(c) |
