| 1 |
Description: Make the build reproducible |
| 2 |
Author: Chris Lamb <[email protected]> |
| 3 |
Bug-Debian: https://bugs.debian.org/1064892 |
| 4 |
Last-Update: 2024-07-31 |
| 5 |
|
| 6 |
--- klepto-0.2.5.orig/klepto/crypto.py |
| 7 |
+++ klepto-0.2.5/klepto/crypto.py |
| 8 |
@@ -19,7 +19,7 @@ def algorithms(): |
| 9 |
algs = tuple(hashlib.algorithms_available) |
| 10 |
except: |
| 11 |
algs = ('md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512') |
| 12 |
- return (None,) + algs |
| 13 |
+ return (None,) + tuple(sorted(algs)) |
| 14 |
|
| 15 |
def hash(object, algorithm=None): |
| 16 |
if algorithm is None: |