From bc2808b18ac18e599a7db5f19fa21c7d870003a8 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 23 May 2016 21:09:38 +0200 Subject: importpkg: fix --hash broken in previous commit --- importpkg.py | 4 ++-- 1 file 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() -- cgit v1.2.3