def create_entry_executability(tt, entry, trans_id):
    """Set the executability of a trans_id according to an inventory entry"""
    if entry.kind == 'file':
        tt.set_executability(entry.executable, trans_id)
