summaryrefslogtreecommitdiffstats
path: root/bin/update-db
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2007-04-27 19:10:58 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2007-04-27 19:10:58 +0000
commit5240fb9eea8cbc2435c79272e212002928bef021 (patch)
treeac91077a7a6b75f17c9776dfb530c69deacc392a /bin/update-db
parent80f6fefef1650025203d602e2ec428b1a0aac8fc (diff)
* bin/update-db:
Report the location of parse errors in Debian's meta-data files. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@5745 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/update-db')
-rwxr-xr-xbin/update-db6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/update-db b/bin/update-db
index 586e983bc8..ca9735f0ab 100755
--- a/bin/update-db
+++ b/bin/update-db
@@ -58,7 +58,11 @@ if warnings:
# Packages
-db.readPackages(cursor, 'data/packages')
+try:
+ db.readPackages(cursor, 'data/packages')
+except debian_support.ParseError, e:
+ e.printOut(sys.stderr)
+ sys.exit(1)
if new_file:
db.commit(cursor)

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