summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2016-05-23 21:09:38 +0200
committerHelmut Grohne <helmut@subdivi.de>2016-05-23 21:09:38 +0200
commitbc2808b18ac18e599a7db5f19fa21c7d870003a8 (patch)
treef890fbd15b992f2a930ecb1e3189f8ae80a2bffd
parentad65a01073bce55948ce4b45381ee6941b5046b2 (diff)
downloaddebian-dedup-bc2808b18ac18e599a7db5f19fa21c7d870003a8.tar.gz
importpkg: fix --hash broken in previous commit
-rwxr-xr-ximportpkg.py4
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()