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 @@ -224,10 +224,17 @@ def job(self,
224
224
cmdline = ["docker" , "run" , dockerimg ] + cmdline
225
225
keydict = {u"cmdline" : cmdline }
226
226
227
- for _ , f in cachebuilder .pathmapper .items ():
227
+ for location , f in cachebuilder .pathmapper .items ():
228
228
if f .type == "File" :
229
+ checksum = next ((e ['checksum' ] for e in cachebuilder .files
230
+ if 'location' in e and e ['location' ] == location
231
+ and 'checksum' in e
232
+ and e ['checksum' ] != 'sha1$hash' ), None )
229
233
st = os .stat (f .resolved )
230
- keydict [f .resolved ] = [st .st_size , int (st .st_mtime * 1000 )]
234
+ if checksum :
235
+ keydict [f .resolved ] = [st .st_size , checksum ]
236
+ else :
237
+ keydict [f .resolved ] = [st .st_size , int (st .st_mtime * 1000 )]
231
238
232
239
interesting = {"DockerRequirement" ,
233
240
"EnvVarRequirement" ,
You can’t perform that action at this time.
0 commit comments