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
commit50a62e1127c74d74d8a2b72dbc35af34d46b0bd0 (patch)
treec0f6d01dd8427eca2b04b261b73c305d09d36bda /bin/update-db
parent5f9ca823f566260f2fc935a394f156eeca6bfe32 (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