return 1;
}
print "reading\n";
- $self->{'handle'}->add_products("/etc/products.d", $solv::Repo::REPO_NO_INTERNALIZE);
+ 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->writecachedrepo();
return 1;
print "cached"
return True
print "reading"
- self.handle.add_products("/etc/products.d", Repo.REPO_NO_INTERNALIZE)
+ 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.writecachedrepo(None)
return True
return true
end
puts "reading"
- @handle.add_products("/etc/products.d", Solv::Repo::REPO_NO_INTERNALIZE)
+ 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)
writecachedrepo(nil)
return true