# File lib/rpm/db.rb, line 11 def initialize(ts, opts={}) opts[:writable] ||= false @ts = ts RPM::C.rpmtsOpenDB(@ts.ptr, opts[:writable] ? Fcntl::O_RDWR | Fcntl::O_CREAT : Fcntl::O_RDONLY ) end