diff options
author | Helmut Grohne <helmut@subdivi.de> | 2016-05-23 21:09:38 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2016-05-23 21:09:38 +0200 |
commit | bc2808b18ac18e599a7db5f19fa21c7d870003a8 (patch) | |
tree | f890fbd15b992f2a930ecb1e3189f8ae80a2bffd | |
parent | ad65a01073bce55948ce4b45381ee6941b5046b2 (diff) | |
download | debian-dedup-bc2808b18ac18e599a7db5f19fa21c7d870003a8.tar.gz |
importpkg: fix --hash broken in previous commit
-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() |