• Julian Andres Klode's avatar
    apt.Cache: Use explicit, more safe locking in update() · e40d0df8
    Julian Andres Klode authored
    Instead of using apt_pkg.get_lock, use the wrapped lock
    context manager to make sure the lock is always released
    correctly at the end of the function / with block.
    
    The old code would not release the lock if slist.read_main_list()
    throws an exception.
    e40d0df8
Name
Last commit
Last update
apt Loading commit data...
aptsources Loading commit data...
data/templates Loading commit data...
debian Loading commit data...
doc Loading commit data...
po Loading commit data...
python Loading commit data...
tests Loading commit data...
typehinting Loading commit data...
utils Loading commit data...
.gitlab-ci.yml Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING.GPL Loading commit data...
Dockerfile Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
pre-build.sh Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...