diff options
Diffstat (limited to 'importpkg.py')
-rwxr-xr-x | importpkg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/importpkg.py b/importpkg.py index badef15..92c474e 100755 --- a/importpkg.py +++ b/importpkg.py @@ -89,7 +89,7 @@ def main(): dumper = yaml.SafeDumper(sys.stdout) dumper.open() if args.hash: - stdin = HashedStream(stdin, hashlib.sha256()) + args.input = HashedStream(args.input, hashlib.sha256()) try: ImportpkgExtractor(dumper.represent).process(args.input) except ProcessingFinished: @@ -97,7 +97,7 @@ def main(): else: raise RuntimeError("unexpected termination of extractor") if args.hash: - stdin.validate(args.hash) + args.input.validate(args.hash) dumper.represent("commit") dumper.close() |