diff options
| -rw-r--r-- | apt/package.py | 9 | ||||
| -rw-r--r-- | debian/changelog | 8 |
2 files changed, 13 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 75604746..1ce4ee7d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +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 @@ -24,7 +31,6 @@ python-apt (0.6.16.2ubuntu1) dapper; urgency=low - fix various pychecker warnings * apt/cache.py, apt/package.py: fix various pychecker warnings - -- Michael Vogt <michael.vogt@ubuntu.com> Tue, 28 Feb 2006 12:04:37 +0100 python-apt (0.6.16.1) unstable; urgency=low |
