aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/mdist.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/mdist.py b/mesonbuild/mdist.py
index 6985ca9..1e80a62 100644
--- a/mesonbuild/mdist.py
+++ b/mesonbuild/mdist.py
@@ -48,7 +48,9 @@ def create_hash(fname):
m = hashlib.sha256()
m.update(open(fname, 'rb').read())
with open(hashname, 'w') as f:
- f.write('{} {}\n'.format(m.hexdigest(), os.path.basename(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())