summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-21 17:51:43 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-21 17:51:43 +0200
commit9d97c4ef07fe249ed2b5af7d52fe15655bbb9170 (patch)
tree8279e1a47b022dde4d2af88daa08ea3bef650485 /doc/source
parenta676f6a0e081e54a0a57dbfca2d14fee381e7d92 (diff)
downloadpython-apt-9d97c4ef07fe249ed2b5af7d52fe15655bbb9170.tar.gz
python/lock.cc: Implement apt_pkg.FileLock().
This is yet another context manager, this time for locking files. It can be used multiple times and features an internal counter.
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/whatsnew/0.8.0.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/source/whatsnew/0.8.0.rst b/doc/source/whatsnew/0.8.0.rst
index 8889cbd9..244da388 100644
--- a/doc/source/whatsnew/0.8.0.rst
+++ b/doc/source/whatsnew/0.8.0.rst
@@ -79,6 +79,12 @@ Yet another context manager is available for locking the package system::
with apt_pkg.SystemLock():
# do your stuff here
+There is also one for file based locking:
+
+ with apt_pkg.FileLock(filename):
+ # do your stuff here
+
+
Unification of dependency handling
----------------------------------
In apt 0.7, there were three different return types of functions parsing