def x86flags(archTag, baseArch, extraFlags, ofInterest):
    try:
        lines = open("/proc/cpuinfo").read().split("\n")
    except __HOLE__:
        lines=[]

    rc = [ (x, deps.FLAG_SENSE_PREFERRED) for x in extraFlags ]

    for line in lines:
        if not line.startswith("flags"): continue
        fields = line.split()
        if fields[0] != "flags": continue

        for flag in fields[2:]:
            if ofInterest.has_key(flag):
                rc.append((flag, deps.FLAG_SENSE_PREFERRED))

        return deps.Dependency(archTag, rc)

    return deps.Dependency(archTag)
dataset/ETHPy150Open sassoftware/conary/conary/deps/arch.py/x86flags