Skip to content
Snippets Groups Projects
Commit 9f456e28 authored by Awais Jibran's avatar Awais Jibran
Browse files

Fix Pavelib prereqs.

Do not read file as bytes, as it would fail the comparison of byte with str.
PROD-1322
parent 95d4acad
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ def prereq_cache(cache_name, paths, install_func):
cache_file_path = os.path.join(PREREQS_STATE_DIR, "{}.sha1".format(cache_filename))
old_hash = None
if os.path.isfile(cache_file_path):
with io.open(cache_file_path, "rb") as cache_file:
with io.open(cache_file_path, "r") as cache_file:
old_hash = cache_file.read()
# Compare the old hash to the new hash
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment