diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-20 18:04:19 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-20 18:04:19 +0200 |
| commit | 652a7312b21aa7121c0075c3c970d5f68fcdf648 (patch) | |
| tree | 019f7b8df3a4011c5121d9530f6ed576f63a9f09 /python/apt_pkgmodule.cc | |
| parent | c35f51be417e029a9ca4a571c3fcd7309634b21b (diff) | |
| download | python-apt-652a7312b21aa7121c0075c3c970d5f68fcdf648.tar.gz | |
python/lock.cc: Introduce apt_pkg.SystemLock context manager.
This is the new alternative to pkgsystem_lock() and pkgsystem_unlock(),
and is the recommended one.
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 cbf88294..d4c23d2f 100644 --- a/python/apt_pkgmodule.cc +++ b/python/apt_pkgmodule.cc @@ -651,6 +651,7 @@ extern "C" void initapt_pkg() ADDTYPE(Module,"AcquireProgress",&PyAcquireProgress_Type); ADDTYPE(Module,"AcquireItemDesc",&PyAcquireItemDesc_Type); ADDTYPE(Module,"CdromProgress",&PyCdromProgress_Type); + ADDTYPE(Module,"SystemLock",&PySystemLock_Type); // Tag file constants PyModule_AddObject(Module,"REWRITE_PACKAGE_ORDER", CharCharToList(TFRewritePackageOrder)); |
