summaryrefslogtreecommitdiffstats
path: root/bin/update-db
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2005-12-15 13:44:01 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2005-12-15 13:44:01 +0000
commit5c1086543df73ae59bda945501037a7f88110150 (patch)
treeede02e50b7512efeff91586514ea05dd816131ee /bin/update-db
parentba30b5fa463ce80c351db6bbe315f2ab492f6cc5 (diff)
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
Diffstat (limited to 'bin/update-db')
-rwxr-xr-xbin/update-db3
1 files changed, 2 insertions, 1 deletions
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)

© 2014-2024 Faster IT GmbH | imprint | privacy policy