backend-sqlite: fix arch index when generating packages_arch tables; temporary disable slow files table generation

This commit is contained in:
Silvan Calarco 2013-10-06 14:09:04 +02:00
parent a51e4180cc
commit f49e684c64

View File

@ -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++) {