diff --git a/src/backend-sqlite3.c b/src/backend-sqlite3.c index 23431de..f28a15e 100644 --- a/src/backend-sqlite3.c +++ b/src/backend-sqlite3.c @@ -399,9 +399,9 @@ generateSQLite_packages(struct configTag *ct, sqlite3 *db, int arch) { struct headerList* currpackage; int i; - snprintf(sqlite3_query, PATH_MAX, "packages_%s", ct->arch[i]); + snprintf(sqlite3_query, PATH_MAX, "packages_%s", ct->arch[arch]); SQLite_init_table(db, sqlite3_query, SQLITE_TABLE_packages); - snprintf(sqlite3_query, PATH_MAX, "packages_files_rel_%s", ct->arch[i]); + snprintf(sqlite3_query, PATH_MAX, "packages_files_rel_%s", ct->arch[arch]); SQLite_init_table(db, sqlite3_query, SQLITE_TABLE_packages_files_rel); SQLite_begin_transaction(db); @@ -470,7 +470,7 @@ generateSQLite(struct configTag *ct) } generateSQLite_packagers(db); - generateSQLite_files(ct, db); +// generateSQLite_files(ct, db); generateSQLite_provided(ct, db); for (i = 0; i < ARCHS_MAX && ct->arch[i]; i++) {