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