Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Dynamically get the proper pagesize
Baptiste Daroussin committed 11 years ago
commit 9886d86585ccab97eb43c517d810c5f09f393c0c
parent 66330a6d2f48aef1eea09e28e8b0b4e3ce33c790
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");