not expert in python but i think /usr/lib/portage/pym/portage_db_flat.py line 96: if self.key_exists(key): should be: if self.has_key(key): sorry for my english Reproducible: Always Steps to Reproduce: 1.cd /usr/lib/portage/pym 2.python 3.import database from portage_db_flat 4.d=database("/var/db","pkg",None,1000,100) 5.d.del_key("foo") Actual Results: >>> d.del_key("foo") Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/portage/pym/portage_db_flat.py", line 96, in del_key if self.key_exists(key): AttributeError: database instance has no attribute 'key_exists' >>> portage version: 2.0.50-r8
yeah, it should be self.has_key(key) I'm kind of amazed nobody has bumped into this- this is guranteed to bork every time.
This still is an issue... possily another .50? I don't like the notion of users/devs hitting borkage....