summaryrefslogtreecommitdiff
path: root/summain
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-06-11 20:01:27 +0100
committerLars Wirzenius <liw@liw.fi>2011-06-11 20:01:27 +0100
commitf2174ad7e7fb02fa3ba1093109f7f0c875934ed4 (patch)
treebbaafdc798d7eff94353a82b3605d32cb3fa98e6 /summain
parentad2e3859dc0b8f592cb8648e682b70b0bc383a40 (diff)
downloadsummain-f2174ad7e7fb02fa3ba1093109f7f0c875934ed4.tar.gz
Check that all checksums are OK.
Diffstat (limited to 'summain')
-rwxr-xr-xsummain6
1 files changed, 6 insertions, 0 deletions
diff --git a/summain b/summain
index ac9d7c9..ff9e225 100755
--- a/summain
+++ b/summain
@@ -54,6 +54,12 @@ class Summain(cliapp.Application):
pn = summainlib.SamePath()
checksums = [x.upper()
for x in self.settings['checksum'] or ['SHA1']]
+ o = summainlib.FilesystemObject('.', nn, pn, exclude, checksums)
+ for checksum in checksums:
+ try:
+ o[checksum]
+ except KeyError:
+ raise cliapp.AppException('Unknown checksum %s' % checksum)
for root in args:
for filename in self.files(root):
o = summainlib.FilesystemObject(filename, nn, pn, exclude,