backend-sqlite: fix arch index when generating packages_arch tables; temporary disable slow files table generation
This commit is contained in:
parent
a51e4180cc
commit
f49e684c64
@ -399,9 +399,9 @@ generateSQLite_packages(struct configTag *ct, sqlite3 *db, int arch) {
|
|||||||
struct headerList* currpackage;
|
struct headerList* currpackage;
|
||||||
int i;
|
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);
|
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_init_table(db, sqlite3_query, SQLITE_TABLE_packages_files_rel);
|
||||||
SQLite_begin_transaction(db);
|
SQLite_begin_transaction(db);
|
||||||
|
|
||||||
@ -470,7 +470,7 @@ generateSQLite(struct configTag *ct)
|
|||||||
}
|
}
|
||||||
|
|
||||||
generateSQLite_packagers(db);
|
generateSQLite_packagers(db);
|
||||||
generateSQLite_files(ct, db);
|
// generateSQLite_files(ct, db);
|
||||||
generateSQLite_provided(ct, db);
|
generateSQLite_provided(ct, db);
|
||||||
|
|
||||||
for (i = 0; i < ARCHS_MAX && ct->arch[i]; i++) {
|
for (i = 0; i < ARCHS_MAX && ct->arch[i]; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user