File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -223,10 +223,17 @@ def job(self,
223
223
cmdline = ["docker" , "run" , dockerimg ] + cmdline
224
224
keydict = {u"cmdline" : cmdline }
225
225
226
- for _ , f in cachebuilder .pathmapper .items ():
226
+ for location , f in cachebuilder .pathmapper .items ():
227
227
if f .type == "File" :
228
+ checksum = next ((e ['checksum' ] for e in cachebuilder .files
229
+ if 'location' in e and e ['location' ] == location
230
+ and 'checksum' in e
231
+ and e ['checksum' ] != 'sha1$hash' ), None )
228
232
st = os .stat (f .resolved )
229
- keydict [f .resolved ] = [st .st_size , int (st .st_mtime * 1000 )]
233
+ if checksum :
234
+ keydict [f .resolved ] = [st .st_size , checksum ]
235
+ else :
236
+ keydict [f .resolved ] = [st .st_size , int (st .st_mtime * 1000 )]
230
237
231
238
interesting = {"DockerRequirement" ,
232
239
"EnvVarRequirement" ,
You can’t perform that action at this time.
0 commit comments