Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
// Move on to next file
pakfire_file_unref(file);
+ // Check for errors
+ if (r != SQLITE_DONE) {
+ ERROR(db->pakfire, "Could not add file to database: %s\n",
+ sqlite3_errmsg(db->handle));
+ goto END;
+ }
+
// Reset bound values
sqlite3_reset(stmt);
}
r = sqlite3_step(stmt);
} while (r == SQLITE_BUSY);
+ // Check for errors
+ if (r != SQLITE_DONE) {
+ ERROR(db->pakfire, "Could not add scriptlet to database: %s\n",
+ sqlite3_errmsg(db->handle));
+ goto END;
+ }
+
// Reset bound values
sqlite3_reset(stmt);