summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2014-04-08 11:43:06 +0200
committerMichael Schroeder <mls@suse.de>2014-04-08 11:43:06 +0200
commitc8e2acdc6c28d39193d24c9ca0a934ee43225648 (patch)
tree73ebe1327b55da82e8d6ce690c176f4920cd0dc8 /bindings
parentbc61a35f537078664825a35c86895eb20d847d1f (diff)
downloadlibsolv-c8e2acdc6c28d39193d24c9ca0a934ee43225648.tar.gz
libsolv-c8e2acdc6c28d39193d24c9ca0a934ee43225648.tar.bz2
libsolv-c8e2acdc6c28d39193d24c9ca0a934ee43225648.zip
make repodata_stringify return the result string
This is in preparation of stringify no longer patching the str element in the kv.
Diffstat (limited to 'bindings')
-rw-r--r--bindings/solv.i5
1 files changed, 2 insertions, 3 deletions
diff --git a/bindings/solv.i b/bindings/solv.i
index 23e7f20..3f88a8b 100644
--- a/bindings/solv.i
+++ b/bindings/solv.i
@@ -2001,9 +2001,8 @@ rb_eval_string(
#endif
const char *__str__() {
KeyValue kv = $self->kv;
- if (!repodata_stringify($self->pool, $self->data, $self->key, &kv, SEARCH_FILES | SEARCH_CHECKSUMS))
- return "";
- return kv.str;
+ const char *str = repodata_stringify($self->pool, $self->data, $self->key, &kv, SEARCH_FILES | SEARCH_CHECKSUMS);
+ return str ? str : "";
}
}