Fix Pavelib prereqs.

Do not read file as bytes, as it would fail the comparison of byte with str.
PROD-1322
This commit is contained in:
Awais Jibran
2020-02-26 12:18:39 +05:00
parent 95d4acad7c
commit 9f456e28b7

View File

@@ -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