summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-06-17 13:43:49 +0200
committerMichael Schroeder <mls@suse.de>2013-06-17 13:43:49 +0200
commite9666fb9b317ba613da1552af7d6fedb3041b370 (patch)
treedb412eac084f2607c0d0468acfe6d97a28e5df29 /bindings
parentb953579fa7caa20826b2e238f04ce7d2368000df (diff)
downloadlibsolv-e9666fb9b317ba613da1552af7d6fedb3041b370.tar.gz
libsolv-e9666fb9b317ba613da1552af7d6fedb3041b370.tar.bz2
libsolv-e9666fb9b317ba613da1552af7d6fedb3041b370.zip
refactor a bit
Diffstat (limited to 'bindings')
-rw-r--r--bindings/solv.i6
1 files changed, 4 insertions, 2 deletions
diff --git a/bindings/solv.i b/bindings/solv.i
index ed609d3..1e2e7fe 100644
--- a/bindings/solv.i
+++ b/bindings/solv.i
@@ -1567,7 +1567,7 @@ rb_eval_string(
return;
data = repo_id2repodata($self, $self->nrepodata - 1);
if (data->state != REPODATA_STUB)
- repodata_create_stubs(data);
+ (void)repodata_create_stubs(data);
}
#ifdef SWIGRUBY
%rename("iscontiguous?") iscontiguous;
@@ -2969,7 +2969,9 @@ rb_eval_string(
repodata_internalize(repo_id2repodata($self->repo, $self->id));
}
void create_stubs() {
- repodata_create_stubs(repo_id2repodata($self->repo, $self->id));
+ Repodata *data = repo_id2repodata($self->repo, $self->id);
+ data = repodata_create_stubs(data);
+ $self->id = data->repodataid;
}
bool write(FILE *fp) {
return repodata_write(repo_id2repodata($self->repo, $self->id), fp) == 0;