summaryrefslogtreecommitdiffstats
path: root/Makefile
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 /Makefile
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 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 668e64b468..668b74c71a 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,10 @@ SARGE_ARCHS = alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc
ETCH_ARCHS = $(SARGE_ARCHS)
all:
- $(PYTHON) bin/update-db
+ rm -f data/security-new.db data/security-new.db.journal
+ cp data/security.db data/security-new.db
+ $(PYTHON) bin/update-db data/security-new.db
+ mv data/security-new.db data/security.db
clean:
-rm data/security.db lib/python/test_security.db

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