[Bug 1826870] Re: cache.commit() doesn't release the archives lock
Ćukasz Zemczak
1826870 at bugs.launchpad.net
Mon May 6 10:55:32 UTC 2019
Hello Julian, or anyone else affected,
Accepted python-apt into cosmic-proposed. The package will build now and
be available at https://launchpad.net/ubuntu/+source/python-apt/1.7.1 in
a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested and change the tag from
verification-needed-cosmic to verification-done-cosmic. If it does not
fix the bug for you, please add a comment stating that, and change the
tag to verification-failed-cosmic. In either case, without details of
your testing we will not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: python-apt (Ubuntu Cosmic)
Status: Triaged => Fix Committed
** Tags added: verification-needed verification-needed-cosmic
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-apt in Ubuntu.
https://bugs.launchpad.net/bugs/1826870
Title:
cache.commit() doesn't release the archives lock
Status in python-apt package in Ubuntu:
Fix Released
Status in python-apt source package in Xenial:
Triaged
Status in python-apt source package in Bionic:
Triaged
Status in python-apt source package in Cosmic:
Fix Committed
Status in python-apt package in Debian:
Fix Released
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.check_call(["apt", "remove", "--yes", "hello"])
[Regression potential]
Other new locking bugs could pop up
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1826870/+subscriptions
More information about the foundations-bugs
mailing list