Skip to content
Snippets Groups Projects
user avatar
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.

(cherry picked from commit e40d0df8)
(cherry picked from commit 88dfb667)
327d6c65
History
Name Last commit Last update
..