]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/python/location-query.in
database: Add scaffolding for checking signatures
[people/ms/libloc.git] / src / python / location-query.in
index e047e0378e29ce59d915a9b159ad83582a18fe83..ed35d29804bfcc90cbd3b80ad92b093092d4443b 100644 (file)
@@ -215,6 +215,11 @@ class CLI(object):
                                % (args.database, e))
                        sys.exit(1)
 
+               # Verify the database
+               if not db.verify():
+                       sys.stderr.write("location-query: Could not verify the database\n")
+                       sys.exit(1)
+
                # Call function
                ret = args.func(db, args)