]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
- make add_solvable return a XSolvable
authorMichael Schroeder <mls@suse.de>
Mon, 16 Jan 2012 12:54:29 +0000 (13:54 +0100)
committerMichael Schroeder <mls@suse.de>
Mon, 16 Jan 2012 12:54:29 +0000 (13:54 +0100)
bindings/solv.i

index e25ba3977adf3ba0322d1577cdbcf64eef10bf23..7505b82cc6dc5637ea7fe2a044f0af189a010d7f 100644 (file)
@@ -1093,8 +1093,9 @@ typedef struct {
     return repo_add_solv_flags($self, fp, flags) == 0;
   }
 
-  Id add_solvable() {
-    return repo_add_solvable($self);
+  XSolvable *add_solvable() {
+    Id solvid = repo_add_solvable($self);
+    return new_XSolvable($self->pool, solvid);
   }
 
   bool add_products(const char *proddir, int flags = 0) {