def cpu_arch_ok(item):
    'Returns a boolean to indicate if the item is ok to install under\n        the current CPU architecture. If not, also adds the failure reason to\n        the rejected_items list.'
    if item.get('supported_architectures'):
        display.display_debug1('Considering item %s, version %s with supported architectures: %s', item['name'], item['version'], item['supported_architectures'])
        display.display_debug1('Our architecture is %s', machine['arch'])
        if (machine['arch'] in item['supported_architectures']):
            return True
        if (('x86_64' in item['supported_architectures']) and (machine['arch'] == 'i386') and (machine['x86_64_capable'] is True)):
            return True
        reason = ('Rejected item %s, version %s with supported architectures: %s. Our architecture is %s.' % (item['name'], item['version'], item['supported_architectures'], machine['arch']))
        rejected_items.append(reason)
        return False
    return True
Returns a boolean to indicate if the item is ok to install under
the current CPU architecture. If not, also adds the failure reason to
the rejected_items list.
def cpu_arch_ok(item):
    'Returns a boolean to indicate if the item is ok to install under\n        the current CPU architecture. If not, also adds the failure reason to\n        the rejected_items list.'
    if item.get('supported_architectures'):
        display.display_debug1('Considering item %s, version %s with supported architectures: %s', item['name'], item['version'], item['supported_architectures'])
        display.display_debug1('Our architecture is %s', machine['arch'])
        if (machine['arch'] in item['supported_architectures']):
            return True
        if (('x86_64' in item['supported_architectures']) and (machine['arch'] == 'i386') and (machine['x86_64_capable'] is True)):
            return True
        reason = ('Rejected item %s, version %s with supported architectures: %s. Our architecture is %s.' % (item['name'], item['version'], item['supported_architectures'], machine['arch']))
        rejected_items.append(reason)
        return False
    return True