diff options
author | Michael Schroeder <mls@suse.de> | 2013-04-24 12:20:50 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-04-24 12:20:50 +0200 |
commit | ceef7a0a62b5efd3fcf0c6e8e07a1d048bc03139 (patch) | |
tree | 566d6dd07893adb83c623687c47b43b310ebdcbc /examples/pysolv | |
parent | fd680e014c9ec7617378d5dce6cd96ae8833a96c (diff) | |
download | libsolv-ceef7a0a62b5efd3fcf0c6e8e07a1d048bc03139.tar.gz libsolv-ceef7a0a62b5efd3fcf0c6e8e07a1d048bc03139.tar.bz2 libsolv-ceef7a0a62b5efd3fcf0c6e8e07a1d048bc03139.zip |
use add_rpmdb_reffp in examples
Diffstat (limited to 'examples/pysolv')
-rwxr-xr-x | examples/pysolv | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/pysolv b/examples/pysolv index b47b859..060e6d5 100755 --- a/examples/pysolv +++ b/examples/pysolv @@ -550,7 +550,8 @@ 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(Repo.REPO_REUSE_REPODATA) + f = solv.xfopen(self.cachepath()) + self.handle.add_rpmdb_reffp(f, Repo.REPO_REUSE_REPODATA) self.writecachedrepo(None) return True |