diff options
| author | Sebastian Heinlein <renate@unstable.virtual> | 2009-04-10 22:27:03 +0200 |
|---|---|---|
| committer | Sebastian Heinlein <renate@unstable.virtual> | 2009-04-10 22:27:03 +0200 |
| commit | 5bdb4d5c14598069856034232e0057a4995af8c1 (patch) | |
| tree | 24608b04aa1777aafa85fe6a5acbb4c5ef4379ab /apt | |
| parent | 75eeb9186bd254f60964d2ec9e70c45ecc92a247 (diff) | |
| download | python-apt-5bdb4d5c14598069856034232e0057a4995af8c1.tar.gz | |
Allow to change the candidate version of a package
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apt/package.py b/apt/package.py index 9afe1674..c13c0ef0 100644 --- a/apt/package.py +++ b/apt/package.py @@ -874,6 +874,12 @@ class Package(object): # depcache actions + def set_candidate(self, version): + """Set the candidate version of the package.""" + self._pcache.cachePreChange() + self._pcache._depcache.SetCandidateVer(self._pkg, version._cand) + self._pcache.cachePostChange() + def markKeep(self): """Mark a package for keep.""" self._pcache.cachePreChange() |
