def _tap(tap, runas=None):
 if (tap in _list_taps()):
  return True
 cmd = 'brew tap {0}'.format(tap)
 try:
  _call_brew(cmd)
 except CommandExecutionError:
  log.error('Failed to tap "{0}"'.format(tap))
  return False
 return True

def _tap ( tap , runas = None ) : if ( tap in _list_taps ( ) ) : return True cmd = 'brew tap {0}' . format ( tap ) try : _call_brew ( cmd ) except CommandExecutionError : log . error ( 'Failed to tap "{0}"' . format ( tap ) ) return False return True
add unofficial github repos to the list of formulas that brew tracks .