From: Michael Schroeder Date: Tue, 21 May 2024 11:43:32 +0000 (+0200) Subject: bindings: fix return value of repodata.add_solv() X-Git-Tag: 0.7.30~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3aa55e65f3f6519e7ed8d997d7c708310c8d06e;p=thirdparty%2Flibsolv.git bindings: fix return value of repodata.add_solv() Found by Dante Grapiuna de Almeida, thanks! Fixes #564 --- diff --git a/bindings/solv.i b/bindings/solv.i index 682d2dcb..f871a819 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);