Commit df4e859d authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Be more specific about cache-ing ASN.1 AST semantics.

parent fbdbb945
...@@ -408,12 +408,12 @@ def ParseAsnFileList(listOfFilenames: List[str]) -> None: # pylint: disable=inv ...@@ -408,12 +408,12 @@ def ParseAsnFileList(listOfFilenames: List[str]) -> None: # pylint: disable=inv
xmlAST2 = projectCache + os.sep + newHash + "_ast_v1.xml" xmlAST2 = projectCache + os.sep + newHash + "_ast_v1.xml"
if not os.path.exists(xmlAST) or not os.path.exists(xmlAST2): if not os.path.exists(xmlAST) or not os.path.exists(xmlAST2):
someFilesHaveChanged = True someFilesHaveChanged = True
print("[DMT] ASN.1 model changed, re-processing...") print("[DMT] No cached model found for", ",".join(listOfFilenames))
else: else:
# no projectCache set, so xmlAST and xmlAST2 are set to None # no projectCache set, so xmlAST and xmlAST2 are set to None
someFilesHaveChanged = True someFilesHaveChanged = True
if not someFilesHaveChanged: if not someFilesHaveChanged:
print("[DMT] No change in ASN.1 model.") print("[DMT] Reusing cached ASN.1 AST for ", ",".join(listOfFilenames))
if not xmlAST: if not xmlAST:
(dummy, xmlAST) = tempfile.mkstemp() (dummy, xmlAST) = tempfile.mkstemp()
......
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