Handle the key in install()/upgrade() as a ruby object and keep a reference as rpmtsAddInstallElement keeps a copy of the key pointer. We pass the object_id and keep a map (like _id2ref) to the objects. Fixes the open file callback on jruby.
Handle the key in install()/upgrade() as a ruby object and
keep a reference as rpmtsAddInstallElement keeps a copy of the
key pointer. We pass the object_id and keep a map (like _id2ref) to
the objects.
Fixes the open file callback on jruby.

dmacvicar/ruby-rpm-ffi