Skip to content
This repository has been archived by the owner on Feb 25, 2018. It is now read-only.

Commit

Permalink
output hash data in sorted order
Browse files Browse the repository at this point in the history
  • Loading branch information
rfk committed Aug 2, 2010
1 parent e2d949e commit 7c920bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions signedimp/tools.py
Expand Up @@ -659,9 +659,11 @@ def files():
moddata.append(read(modpath))
moddata = "\x00".join(moddata)
modhashes[modname] = hash(moddata).hexdigest()
for nm,hash in modhashes.iteritems():
# Concatenate the various hashes. Put then in sorted order so
# it's easy to locate a particular hash by hand.
for nm,hash in sorted(modhashes.items()):
output.append("m %s %s" % (hash,nm))
for nm,hash in datahashes.iteritems():
for nm,hash in sorted(datahashes.iteritems()):
output.append("d %s %s" % (hash,nm))
return "\n".join(output)

Expand Down

0 comments on commit 7c920bd

Please sign in to comment.