[Bug 1780099] Re: Cache remapping breaks hashing of Package objects
Ćukasz Zemczak
1780099 at bugs.launchpad.net
Thu Jul 12 14:00:54 UTC 2018
Hello Julian, or anyone else affected,
Accepted python-apt into bionic-proposed. The package will build now and
be available at https://launchpad.net/ubuntu/+source/python-apt/1.6.2 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-bionic to verification-done-bionic. If it does not
fix the bug for you, please add a comment stating that, and change the
tag to verification-failed-bionic. 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!
** Changed in: python-apt (Ubuntu Bionic)
Status: In Progress => Fix Committed
** Tags added: verification-needed verification-needed-bionic
--
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/1780099
Title:
Cache remapping breaks hashing of Package objects
Status in python-apt package in Ubuntu:
Fix Committed
Status in python-apt source package in Bionic:
Fix Committed
Bug description:
[Impact]
The apt.Package objects use the id as the hash, but the hash can change after reopening, meaning that code will fail to work, for example:
c=apt.Cache()
p=c["a"]
set_of_p={p}
c.open()
assert p in set_of_p
will fail.
[Test case]
The above test case is run as part of autopkgtest (syntax is slightly different), so passing autopkgtests means verification is done.
[Regression potential]
Hashing packages objects will be slower as it hashes the name and architecture now.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1780099/+subscriptions
More information about the foundations-bugs
mailing list