Checksum the project.py file to validate that the pickle we get from the project...
[deliverable/lttng-ivc.git] / lttng_ivc / utils / project.py
index 7e9957113502fda537d2cc1115c979148e56188b..f508c31cd591b912ed2bbc60eeec9e3234466142 100644 (file)
@@ -3,6 +3,9 @@ import shutil
 import git
 import subprocess
 import logging
+import lttng_ivc.settings as Settings
+
+from lttng_ivc.utils.utils import sha256_checksum
 
 _logger = logging.getLogger('project')
 
@@ -23,7 +26,9 @@ class Project(object):
 
         """ A collection of Project dependencies """
         self.dependencies = {}
+        # used for project cache and pickle validation
         self._immutable = False
+        self._py_file_checksum = sha256_checksum(Settings.project_py_file_location)
 
         # State
         self.isBuilt = False
This page took 0.025161 seconds and 5 git commands to generate.