summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-09-23 11:27:47 +0200
committerMichael Schroeder <mls@suse.de>2013-09-23 11:27:47 +0200
commit62741a85012555a654ef675beda65e0d92c6e4a2 (patch)
tree201f02a489bd10b93097b75976b96dbf30de26d9 /bindings
parent6b973cae5b83ea0313ef6cb106357e5ebbafd913 (diff)
downloadlibsolv-62741a85012555a654ef675beda65e0d92c6e4a2.tar.gz
libsolv-62741a85012555a654ef675beda65e0d92c6e4a2.tar.bz2
libsolv-62741a85012555a654ef675beda65e0d92c6e4a2.zip
add problem2str() convenience function to API
Diffstat (limited to 'bindings')
-rw-r--r--bindings/solv.i7
1 files changed, 1 insertions, 6 deletions
diff --git a/bindings/solv.i b/bindings/solv.i
index 77d744a..1f9259b 100644
--- a/bindings/solv.i
+++ b/bindings/solv.i
@@ -2400,12 +2400,7 @@ rb_eval_string(
%rename("str") __str__;
#endif
const char *__str__() {
- Id type, source, target, dep;
- Id r = solver_findproblemrule($self->solv, $self->id);
- if (!r)
- return "";
- type = solver_ruleinfo($self->solv, r, &source, &target, &dep);
- return solver_problemruleinfo2str($self->solv, type, source, target, dep);
+ return solver_problem2str($self->solv, $self->id);
}
}