summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/cache.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/apt/cache.py b/apt/cache.py
index bbf2165b..3df2b4a6 100644
--- a/apt/cache.py
+++ b/apt/cache.py
@@ -232,6 +232,10 @@ class Cache(object):
fetcher.Shutdown()
return (res == pm.ResultCompleted)
+ def clear(self):
+ """ Unmark all changes """
+ self._depcache.Init()
+
# cache changes
def cachePostChange(self):
" called internally if the cache has changed, emit a signal then "