if (defined(&solv::Repo::add_products)) {
$self->{'handle'}->add_products("/etc/products.d", $solv::Repo::REPO_NO_INTERNALIZE);
}
- $self->{'handle'}->add_rpmdb($solv::Repo::REPO_REUSE_REPODATA);
+ my $f = solv::xfopen($self->cachepath());
+ $self->{'handle'}->add_rpmdb_reffp($f, $solv::Repo::REPO_REUSE_REPODATA);
$self->writecachedrepo();
return 1;
}
print "reading"
if hasattr(self.handle.__class__, 'add_products'):
self.handle.add_products("/etc/products.d", Repo.REPO_NO_INTERNALIZE)
- self.handle.add_rpmdb(Repo.REPO_REUSE_REPODATA)
+ f = solv.xfopen(self.cachepath())
+ self.handle.add_rpmdb_reffp(f, Repo.REPO_REUSE_REPODATA)
self.writecachedrepo(None)
return True
if @handle.respond_to? :add_products
@handle.add_products("/etc/products.d", Solv::Repo::REPO_NO_INTERNALIZE)
end
- @handle.add_rpmdb(Solv::Repo::REPO_REUSE_REPODATA)
+ f = Solv::xfopen(cachepath())
+ @handle.add_rpmdb_reffp(f, Solv::Repo::REPO_REUSE_REPODATA)
+ f.close
writecachedrepo(nil)
return true
end