equal
deleted
inserted
replaced
93 if CFLAGS not in cflags: |
93 if CFLAGS not in cflags: |
94 cflags.append(CFLAGS) |
94 cflags.append(CFLAGS) |
95 |
95 |
96 oldmd5 = self.md5key |
96 oldmd5 = self.md5key |
97 self.md5key = hashlib.md5(wholesrcdata).hexdigest() |
97 self.md5key = hashlib.md5(wholesrcdata).hexdigest() |
98 props = self.CTRInstance.GetProjectProperties() |
98 |
99 self.md5key += '#'.join([props[key] for key in ['companyName', |
|
100 'projectName', |
|
101 'productName']]) |
|
102 self.md5key += '#' #+','.join(map(str,time.localtime())) |
|
103 # Store new PLC filename based on md5 key |
99 # Store new PLC filename based on md5 key |
104 f = open(self._GetMD5FileName(), "w") |
100 f = open(self._GetMD5FileName(), "w") |
105 f.write(self.md5key) |
101 f.write(self.md5key) |
106 f.close() |
102 f.close() |
107 |
103 |