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 | 7323b4217fa3001b86d1c2d5d1d53853e03793e0 (patch) | |
tree | f351308231cc31788b404e6e95a52a375f276c56 /bin/update-db | |
parent | 238dd14718a6508e44a2f0c70e4d005b6f77ba51 (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) |