diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-06-11 20:01:27 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-06-11 20:01:27 +0100 |
commit | f2174ad7e7fb02fa3ba1093109f7f0c875934ed4 (patch) | |
tree | bbaafdc798d7eff94353a82b3605d32cb3fa98e6 /summain | |
parent | ad2e3859dc0b8f592cb8648e682b70b0bc383a40 (diff) | |
download | summain-f2174ad7e7fb02fa3ba1093109f7f0c875934ed4.tar.gz |
Check that all checksums are OK.
Diffstat (limited to 'summain')
-rwxr-xr-x | summain | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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, |