I recently did an uncomplete merge by using the ebuild command up to the actual merge (fixing an xargs problem), simply copying the binary myself. This left a -MERGING-* file in /var/db/pkg/sys-apps, which provoked a bug in vartree when scanning the directory. It apparently didn't fit the format of a normal package name, so vartree calls self.invalidentry. However vartree has no method invalidentry .. How are these -MERGING-* entries supposed to be removed btw? I tried ebuild clean, but still there. Do I *have to* complete the merge, seems a bit messy to me.
*** This bug has been marked as a duplicate of 31901 ***