diff options
author | Florian Weimer <fw@deneb.enyo.de> | 2005-12-15 13:44:01 +0000 |
---|---|---|
committer | Florian Weimer <fw@deneb.enyo.de> | 2005-12-15 13:44:01 +0000 |
commit | e1cf2769ecfb45c95b64b8ddafe26dd14588f3cd (patch) | |
tree | aa1f26b14e9216d0d25cb75184348ac524e2050d /bin/update-db | |
parent | a263639984985722961386a795a180fc12184e9e (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-x | bin/update-db | 3 |
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) |