}
#ifdef ENABLE_RPMDB
- bool add_rpmdb(Repo *ref, int flags = 0) {
- return repo_add_rpmdb($self, ref, flags);
+ bool add_rpmdb(int flags = 0) {
+ return repo_add_rpmdb($self, 0, flags);
}
Id add_rpm(const char *name, int flags = 0) {
return repo_add_rpm($self, name, flags);
if (defined(&solv::Repo::add_products)) {
$self->{'handle'}->add_products("/etc/products.d", $solv::Repo::REPO_NO_INTERNALIZE);
}
- $self->{'handle'}->add_rpmdb(undef, $solv::Repo::REPO_REUSE_REPODATA);
+ $self->{'handle'}->add_rpmdb($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(None, Repo.REPO_REUSE_REPODATA)
+ self.handle.add_rpmdb(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(nil, Solv::Repo::REPO_REUSE_REPODATA)
+ @handle.add_rpmdb(Solv::Repo::REPO_REUSE_REPODATA)
writecachedrepo(nil)
return true
end