diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-21 17:51:43 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-21 17:51:43 +0200 |
| commit | 9d97c4ef07fe249ed2b5af7d52fe15655bbb9170 (patch) | |
| tree | 8279e1a47b022dde4d2af88daa08ea3bef650485 /python/apt_pkgmodule.cc | |
| parent | a676f6a0e081e54a0a57dbfca2d14fee381e7d92 (diff) | |
| download | python-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 'python/apt_pkgmodule.cc')
| -rw-r--r-- | python/apt_pkgmodule.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc index d4c23d2f..8b8e9c7f 100644 --- a/python/apt_pkgmodule.cc +++ b/python/apt_pkgmodule.cc @@ -652,6 +652,7 @@ extern "C" void initapt_pkg() ADDTYPE(Module,"AcquireItemDesc",&PyAcquireItemDesc_Type); ADDTYPE(Module,"CdromProgress",&PyCdromProgress_Type); ADDTYPE(Module,"SystemLock",&PySystemLock_Type); + ADDTYPE(Module,"FileLock",&PyFileLock_Type); // Tag file constants PyModule_AddObject(Module,"REWRITE_PACKAGE_ORDER", CharCharToList(TFRewritePackageOrder)); |
