cache.commit() doesn't release the archives lock
Bug #1826870 reported by
Julian Andres Klode
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-apt (Debian) |
Fix Released
|
Unknown
|
|||
python-apt (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
High
|
Unassigned | ||
Cosmic |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
cache.commit() does not release all the locks it acquires as part of committing. This is a regression of locking fixes in bug 1795407.
[Test case]
This script should work:
#!/usr/bin/env python
import apt
import subprocess
cache = apt.Cache()
pkg = cache["hello"]
pkg.mark_install()
cache.commit()
subprocess.
[Regression potential]
Other new locking bugs could pop up
Changed in python-apt (Debian): | |
status: | Unknown → Fix Released |
Changed in python-apt (Ubuntu): | |
importance: | Undecided → High |
Changed in python-apt (Ubuntu Xenial): | |
importance: | Undecided → High |
Changed in python-apt (Ubuntu Bionic): | |
importance: | Undecided → High |
Changed in python-apt (Ubuntu Cosmic): | |
importance: | Undecided → High |
tags: | added: regression-update |
To post a comment you must log in.
This was fixed in disco, in 1.8.4. It also affects cosmic and bionic; and the proposed SRU for bug 1795407 in xenial.