Lines Matching refs:attr
276 # The corresponding hash attr should be in the
278 attr = hash_attrs[0]
280 return attr, None, hash_dic[attr]
283 return attr, action.hash, hash_dic[attr]
285 if attr in action.attrs:
286 return (attr, action.attrs[attr],
287 hash_dic[attr])
292 attr = "pkg.content-hash"
294 return attr, None, hash_dic[ch_type]
295 if attr in action.attrs:
296 ch = ContentHash(action.attrs[attr])
298 return (attr, ch[ch_type],
301 # The corresponding hash attr should be in the
303 attr = hash_attrs[-1]
304 if attr in action.attrs:
305 return attr, action.attrs[attr], hash_dic[attr]
392 attr = hash_attrs[0]
393 # The corresponding hash attr should be in the
395 if attr not in all_hashes:
397 new_hash = action.attrs.get(attr)
398 old_hash = old_action.attrs.get(attr)
399 return attr, new_hash, old_hash, hash_dic[attr]
403 attr = "pkg.content-hash"
404 if attr not in all_hashes:
407 action.attrs.get(attr, {}))
409 old_action.attrs.get(attr, {}))
437 return attr, new_hash, old_hash, hash_dic.get(ch_type)
439 # The corresponding hash attr should be in the
441 attr = hash_attrs[-1]
442 if attr not in all_hashes:
444 new_hash = action.attrs.get(attr)
445 old_hash = old_action.attrs.get(attr)
446 return attr, new_hash, old_hash, hash_dic[attr]