def on_data(data_list, data, version):
    name = data.get('name')
    if name == 'untrusted':
        _data = Data('untrusted')
    elif name == 'install':
        index = data.get('index')
        data_obj_list = filter(lambda d: d.index == index, version.app.data_set.all())
        try:
            _data = Data('install', index=index, text=next(data_obj_list).value)
        except __HOLE__:
            _data = Data('install', index=index, status='error-nodata')

    data_list.append(_data)
    return data_list
dataset/ETHPy150Open Crystalnix/omaha-server/omaha_server/omaha/builder.py/on_data