summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/package.py9
-rw-r--r--debian/changelog9
2 files changed, 14 insertions, 4 deletions
diff --git a/apt/package.py b/apt/package.py
index 4fceb904..66bfd72b 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -274,10 +274,13 @@ class Package(object):
self._pcache.cachePreChange()
self._depcache.MarkKeep(self._pkg)
self._pcache.cachePostChange()
- def markDelete(self, autoFix=True):
- """ mark a package for delete. Run the resolver if autoFix is set """
+ def markDelete(self, autoFix=True, purge=False):
+ """ mark a package for delete. Run the resolver if autoFix is set.
+ Mark the package as purge (remove with configuration) if 'purge'
+ is set.
+ """
self._pcache.cachePreChange()
- self._depcache.MarkDelete(self._pkg)
+ self._depcache.MarkDelete(self._pkg, purge)
# try to fix broken stuffsta
if autoFix and self._depcache.BrokenCount > 0:
Fix = apt_pkg.GetPkgProblemResolver(self._depcache)
diff --git a/debian/changelog b/debian/changelog
index 7dbc7c91..567ef8e9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,17 @@
-python-apt (0.6.16.2ubuntu4) dapper; urgency=low
+python-apt (0.6.16.2ubuntu5) dapper; urgency=low
* apt/cache.py: Release locks on failure (thanks to Colin Watson)
(closes: #35867)
-- Michael Vogt <michael.vogt@ubuntu.com> Tue, 21 Mar 2006 15:09:14 +0100
+python-apt (0.6.16.2ubuntu4) dapper; urgency=low
+
+ * apt/package.py:
+ - added Package.setDelete(purge) option
+
+ -- Michael Vogt <michael.vogt@ubuntu.com> Mon, 6 Mar 2006 18:59:33 +0000
+
python-apt (0.6.16.2ubuntu3) dapper; urgency=low
* apt/package.py: undo some damager from pychecker