Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Dynamically get the proper pagesize
Baptiste Daroussin committed 11 years ago
commit 9886d86585ccab97eb43c517d810c5f09f393c0c
parent 66330a6
1 file changed +1 -1
modified libpkg/repo/binary/update.c
@@ -521,7 +521,7 @@ pkg_repo_binary_update_proceed(const char *name, struct pkg_repo *repo,
	/*sql_exec(sqlite, "PRAGMA synchronous = OFF;");
	sql_exec(sqlite, "PRAGMA journal_mode = DELETE;");
	sql_exec(sqlite, "PRAGMA temp_store = MEMORY;");*/
-
	sql_exec(sqlite, "PRAGMA page_size = 4096;");
+
	sql_exec(sqlite, "PRAGMA page_size = %d;", getpagesize());
	sql_exec(sqlite, "PRAGMA cache_size = 10000;");

	rc = pkgdb_transaction_begin(sqlite, "REPO");