summaryrefslogtreecommitdiff
path: root/summain
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-08-08 15:15:58 +0100
committerLars Wirzenius <liw@liw.fi>2011-08-08 15:15:58 +0100
commit805c971836354d708d48efc3891facdae06853e4 (patch)
tree2a95d1d6c1d987c531082e3da231cdc1166fbb0e /summain
parentfe069d210aa723eb93707fc5aa5d0a80ae3e943d (diff)
downloadsummain-805c971836354d708d48efc3891facdae06853e4.tar.gz
Get rid of unnecessary code.
Diffstat (limited to 'summain')
-rwxr-xr-xsummain15
1 files changed, 0 insertions, 15 deletions
diff --git a/summain b/summain
index 67b73cd..84b3c35 100755
--- a/summain
+++ b/summain
@@ -114,23 +114,8 @@ class Summain(cliapp.Application):
yield root
def process_args(self, args):
- relative = self.settings['relative-paths']
- exclude = self.settings['exclude']
- nn = summainlib.NumberNormalizer()
- if self.settings['mangle-paths']:
- pn = summainlib.PathNormalizer(self.settings['secret'])
- else:
- pn = summainlib.SamePath()
-
checksums = [x.upper()
for x in self.settings['checksum'] or ['SHA1']]
- o = summainlib.FilesystemObject('.', nn, pn, exclude)
- for checksum in checksums:
- try:
- o[checksum]
- except KeyError:
- raise cliapp.AppException('Unknown checksum %s' % checksum)
-
fmt = self.new_formatter(checksums)
for name, o in self.find_roots(args):
fmt.write_object(name, o)