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
commit211fd943bc2a6090f7c2b51e7c6107a3a5bc13e3 (patch)
tree913e65aa6524ebbe19316d21f89f25de885a5ce1 /bin/update-db
parentfeab0e4dd08085c159af2518a4a0b06216b3832b (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