As we've previously discussed -- just filing here for tracking purposes
rpm.errorSetCallback doesn't handle restoring python threads correctly so can
get called into from unexpected contexts. I'm fine with just replacing the
interface with passing an open file descriptor down similar to ts.scriptFd
Fixed in rpm-4.2-0.56.
As discussed, the fix doesn't seem to work
Have rpm.setLogFile now which looks reasonable to me