From 5c1086543df73ae59bda945501037a7f88110150 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 15 Dec 2005 13:44:01 +0000 Subject: bin/update-db: Do not hard-code the database name. Use SQLite in non-synchronous mode. Makefile (all): Run bin/update-db on a copy of the database, so that we can continue to serve requests while the database is being updated. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@3056 e39458fd-73e7-0310-bf30-c45bca0a0e42 --- bin/update-db | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/update-db') diff --git a/bin/update-db b/bin/update-db index 79ecc62706..eadb529fcf 100755 --- a/bin/update-db +++ b/bin/update-db @@ -22,7 +22,7 @@ import bugs import debian_support import security_db -db_file = 'data/security.db' +db_file = sys.argv[1] try: db = security_db.DB(db_file) new_file = False @@ -31,6 +31,7 @@ except security_db.SchemaMismatch: db = security_db.DB(db_file, verbose=True) new_file = True +db.cursor().execute("PRAGMA synchronous = OFF") cursor = db.writeTxn() # Bug lists (CAN/CVE/DSA/DTSA) -- cgit v1.2.3