]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
bindings: fix return value of repodata.add_solv()
authorMichael Schroeder <mls@suse.de>
Tue, 21 May 2024 11:43:32 +0000 (13:43 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 21 May 2024 11:43:32 +0000 (13:43 +0200)
Found by Dante Grapiuna de Almeida, thanks!
Fixes #564

bindings/solv.i

index 682d2dcbb37bdc492704799c8038e52a4e6badce..f871a819f6594ed67864c6e9aedd17deb51ef4d7 100644 (file)
@@ -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);