summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-04-23 10:54:00 +0200
committerMichael Schroeder <mls@suse.de>2013-04-23 10:54:00 +0200
commit7ea7526604691034dbcadb096c7b8c053f0d9ed4 (patch)
tree8f7103b363eed741ee852e8ede12de67f1a0741e /examples
parent7fbfb48c6db0ccf031a61d2f38aca87600a3f223 (diff)
downloadlibsolv-7ea7526604691034dbcadb096c7b8c053f0d9ed4.tar.gz
libsolv-7ea7526604691034dbcadb096c7b8c053f0d9ed4.tar.bz2
libsolv-7ea7526604691034dbcadb096c7b8c053f0d9ed4.zip
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.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/p5solv2
-rwxr-xr-xexamples/pysolv2
-rwxr-xr-xexamples/rbsolv2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/p5solv b/examples/p5solv
index 324d30d..178a25a 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 18327d7..ff71c42 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 3c87d3d..33f5791 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