Commit 70ccf23f authored by leroux's avatar leroux Committed by Austin Seipp
Browse files

fingerprint.py: Invoke 'perl' manually (#8283)



This fixes the fingerprint script on windows, since we can't rely on
using '#!/usr/bin/perl'
Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
parent bc8a5e14
...@@ -55,8 +55,13 @@ def fingerprint(source=None): ...@@ -55,8 +55,13 @@ def fingerprint(source=None):
`sync-all` command will be run to get the current fingerprint. `sync-all` command will be run to get the current fingerprint.
""" """
if source is None: if source is None:
sync_all = ["./sync-all", "log", "-1", "--pretty=oneline"] if sys.platform == 'win32':
source = Popen(sync_all, stdout=PIPE).stdout # Can't rely on perl being located at `/usr/bin/perl`.
sync_all = ["perl", "./sync-all", "log", "-1", "--pretty=oneline"]
else:
sync_all = ["./sync-all", "log", "-1", "--pretty=oneline"]
source = Popen(sync_all, stdout=PIPE).stdout
lib = "" lib = ""
commits = {} commits = {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment