def remove(name=None, pkgs=None, **kwargs):
 pkg2rm = ''
 if pkgs:
  for pkg in pkgs:
   pkg2rm += '{0} '.format(pkg)
  log.debug('Installing these packages instead of {0}: {1}'.format(name, pkg2rm))
 else:
  pkg2rm = '{0}'.format(name)
 old = list_pkgs()
 cmd = '/bin/pkg uninstall -v {0}'.format(pkg2rm)
 out = __salt__['cmd.run_all'](cmd, output_loglevel='trace')
 __context__.pop('pkg.list_pkgs', None)
 new = list_pkgs()
 ret = salt.utils.compare_dicts(old, new)
 if (out['retcode'] != 0):
  raise CommandExecutionError('Error occurred removing package(s)', info={'changes': ret, 'retcode': ips_pkg_return_values[out['retcode']], 'errors': [out['stderr']]})
 return ret

def remove ( name = None , pkgs = None , ** kwargs ) : pkg2rm = '' if pkgs : for pkg in pkgs : pkg2rm += '{0} ' . format ( pkg ) log . debug ( 'Installing these packages instead of {0}: {1}' . format ( name , pkg2rm ) ) else : pkg2rm = '{0}' . format ( name ) old = list_pkgs ( ) cmd = '/bin/pkg uninstall -v {0}' . format ( pkg2rm ) out = __salt__ [ 'cmd.run_all' ] ( cmd , output_loglevel = 'trace' ) __context__ . pop ( 'pkg.list_pkgs' , None ) new = list_pkgs ( ) ret = salt . utils . compare_dicts ( old , new ) if ( out [ 'retcode' ] != 0 ) : raise CommandExecutionError ( 'Error occurred removing package(s)' , info = { 'changes' : ret , 'retcode' : ips_pkg_return_values [ out [ 'retcode' ] ] , 'errors' : [ out [ 'stderr' ] ] } ) return ret
remove files and directories from the subversion repository cwd the path to the subversion repository targets : none files .