

def update_index(quiet=True):
    '\n    Update Portage package definitions.\n    '
    manager = MANAGER
    if quiet:
        with settings(hide('running', 'stdout', 'stderr', 'warnings'), warn_only=True):
            run_as_root(('%(manager)s --sync' % locals()))
    else:
        run_as_root(('%(manager)s --sync' % locals()))

dataset/ETHPy150Open ronnix/fabtools/fabtools/portage.py update_index/original