mdist: Print file path at the end of run() instead of in create_hash().

This commit is contained in:
Aman Verma 2020-12-22 16:53:34 -05:00 committed by Eli Schwartz
parent 1f7c8ec7e2
commit cb10ba75d4
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,6 @@ def create_hash(fname):
# A space and an asterisk because that is the format defined by GNU coreutils
# and accepted by busybox and the Perl shasum tool.
f.write('{} *{}\n'.format(m.hexdigest(), os.path.basename(fname)))
print(os.path.relpath(fname), m.hexdigest())
def del_gitfiles(dirname):
@ -284,4 +283,5 @@ def run(options):
if rc == 0:
for name in names:
create_hash(name)
print('Created', os.path.relpath(name))
return rc