abort("failed to download '{}': {}".format(collection, error))
sys.exit(0)
+reader.normalize()
+
# Scan the collection. Make an array of (stream, file, local
# destination filename) tuples, and add up total size to extract.
todo = []
sys.stderr.write("%s %s/%s\n"
% (digestor.hexdigest(), s.name(), f.name()))
except KeyboardInterrupt:
- if outfile and outfile != '/dev/stdout':
+ if outfile and outfilename != '/dev/stdout':
os.unlink(outfilename)
break