From b3aa55e65f3f6519e7ed8d997d7c708310c8d06e Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Tue, 21 May 2024 13:43:32 +0200 Subject: [PATCH] bindings: fix return value of repodata.add_solv() Found by Dante Grapiuna de Almeida, thanks! Fixes #564 --- bindings/solv.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/solv.i b/bindings/solv.i index 682d2dcbb..f871a819f 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -4476,7 +4476,7 @@ rb_eval_string( r = repo_add_solv(data->repo, fp, flags | REPO_USE_LOADING); if (r || data->state == REPODATA_LOADING) data->state = oldstate; - return r; + return r == 0; } void extend_to_repo() { Repodata *data = repo_id2repodata($self->repo, $self->id);