From: Michael Schroeder Date: Tue, 23 Apr 2013 08:54:00 +0000 (+0200) Subject: remove "ref" argument from add_rpmdb() in the bindings X-Git-Tag: BASE-SuSE-Code-12_3-Branch~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ea7526604691034dbcadb096c7b8c053f0d9ed4;p=thirdparty%2Flibsolv.git remove "ref" argument from add_rpmdb() in the bindings This is done mainly for consistency reasons (plus nobody used the ref argument anyway). When we need the ref back, we'll add a new method. --- diff --git a/bindings/solv.i b/bindings/solv.i index 7901a5b8..e495719d 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -1421,8 +1421,8 @@ rb_eval_string( } #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); diff --git a/examples/p5solv b/examples/p5solv index 324d30df..178a25a5 100755 --- a/examples/p5solv +++ b/examples/p5solv @@ -478,7 +478,7 @@ sub load { 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; } diff --git a/examples/pysolv b/examples/pysolv index 18327d7c..ff71c421 100755 --- a/examples/pysolv +++ b/examples/pysolv @@ -550,7 +550,7 @@ class repo_system(repo_generic): 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 diff --git a/examples/rbsolv b/examples/rbsolv index 3c87d3db..33f57913 100755 --- a/examples/rbsolv +++ b/examples/rbsolv @@ -492,7 +492,7 @@ class Repo_system < Repo_generic 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