summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2015-07-17 01:41:21 +0200
committerLinus Nordberg <linus@nordu.net>2015-07-17 01:41:21 +0200
commitd643db5f029b44b8e0d876790badb65fde8fa5ab (patch)
tree0bd9c7be7ed39be39c0efa064575a0b2c1e22275 /tools
parent9ab683a3e99348d3b452cf90a40fa01b6c3be72c (diff)
Add --noverify option to merge.py.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/merge.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/merge.py b/tools/merge.py
index 9904b84..69d503b 100755
--- a/tools/merge.py
+++ b/tools/merge.py
@@ -30,6 +30,7 @@ parser.add_argument('--config', help="System configuration", required=True)
parser.add_argument('--localconfig', help="Local configuration", required=True)
parser.add_argument("--nomerge", action='store_true', help="Don't actually do merge")
parser.add_argument("--timing", action='store_true', help="Print timing information")
+parser.add_argument("--noverify", action='store_true', help="Don't verify entries")
args = parser.parse_args()
config = yaml.load(open(args.config))
@@ -234,7 +235,8 @@ for storagenode in storagenodes:
entries = get_entries(storagenode["name"], "https://%s/" % storagenode["address"], chunk)
for hash in chunk:
entry = entries[hash]
- verify_entry(verifycert, entry, hash)
+ if not noverify:
+ verify_entry(verifycert, entry, hash)
write_chain(hash, entry)
add_to_logorder(hash)
logorder.append(hash)