summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 3eabba16b3..9054b2ec18 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -664,7 +664,7 @@ def verify_donestamp(ud, d, origud=None):
664 # as an upgrade path from the previous done stamp file format. 664 # as an upgrade path from the previous done stamp file format.
665 if checksums != precomputed_checksums: 665 if checksums != precomputed_checksums:
666 with open(ud.donestamp, "wb") as cachefile: 666 with open(ud.donestamp, "wb") as cachefile:
667 p = pickle.Pickler(cachefile, pickle.HIGHEST_PROTOCOL) 667 p = pickle.Pickler(cachefile, 2)
668 p.dump(checksums) 668 p.dump(checksums)
669 return True 669 return True
670 except ChecksumError as e: 670 except ChecksumError as e:
@@ -698,7 +698,7 @@ def update_stamp(ud, d):
698 checksums = verify_checksum(ud, d) 698 checksums = verify_checksum(ud, d)
699 # Store the checksums for later re-verification against the recipe 699 # Store the checksums for later re-verification against the recipe
700 with open(ud.donestamp, "wb") as cachefile: 700 with open(ud.donestamp, "wb") as cachefile:
701 p = pickle.Pickler(cachefile, pickle.HIGHEST_PROTOCOL) 701 p = pickle.Pickler(cachefile, 2)
702 p.dump(checksums) 702 p.dump(checksums)
703 except ChecksumError as e: 703 except ChecksumError as e:
704 # Checksums failed to verify, trigger re-download and remove the 704 # Checksums failed to verify, trigger re-download and remove the