[Secure-testing-commits] r5745 - bin

Florian Weimer fw at alioth.debian.org
Fri Apr 27 19:10:59 UTC 2007


Author: fw
Date: 2007-04-27 19:10:58 +0000 (Fri, 27 Apr 2007)
New Revision: 5745

Modified:
   bin/update-db
Log:
* bin/update-db:
  Report the location of parse errors in Debian's meta-data files.


Modified: bin/update-db
===================================================================
--- bin/update-db	2007-04-27 18:35:30 UTC (rev 5744)
+++ bin/update-db	2007-04-27 19:10:58 UTC (rev 5745)
@@ -58,7 +58,11 @@
 
 # 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)




More information about the Secure-testing-commits mailing list