• Julian Andres Klode's avatar
    Do not override __hash__ in apt.package.Package · 5e90cca6
    Julian Andres Klode authored
    We do not override __eq__ so there's not much point overriding __hash__,
    and it actively breaks stuff: With cache reopening, the id of a package
    object can change, meaning that if you build a set of packages (p_set), then
    reopen, you might find that any(p not in p_set for p in p_set).
    
    LP: #1780099
    5e90cca6
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...