def arch():
    try:
        p = subprocess.Popen(['dpkg', '--print-architecture'],
                             close_fds=True, stdout=subprocess.PIPE)
    except OSError as e:
        p = subprocess.Popen(['rpm', '--eval', '%_arch'],
                             close_fds=True, stdout=subprocess.PIPE)
    stdout, stderr = p.communicate()
    if 0 != p.returncode:
        return None
    return stdout.rstrip()
Add and commit all the files from the Git repository specified.
dataset/ETHPy150Open devstructure/blueprint/blueprint/util.py/arch--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/python/test/test_release.py/GitCommandTest.commitRepository