pkg->pkgname = 0;
pkg->installed = 0;
- rc = sqlite3_open(path, &db);
+ rc = sqlite3_open_v2(path, &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL);
if (rc) {
SQLERROR(sqlite3_errmsg(db));
sqlite3_close(db);
need = strtab + dyn->d_un.d_val;
if (strlen(need) == 0) continue;
sqlite3_bind_text(ifile,2,need,strlen(need),SQLITE_STATIC);
+#if 0
fprintf(stderr, "%s needs %s\n", hash, need);
+#endif
rc = sqlite3_step(ifile);
if (rc != SQLITE_DONE) {
SQLERROR(sqlite3_errmsg(db));