def deinstall(name):
 portpath = _check_portname(name)
 old = __salt__['pkg.list_pkgs']()
 result = __salt__['cmd.run_all'](['make', 'deinstall', 'BATCH=yes'], cwd=portpath, python_shell=False)
 __context__.pop('pkg.list_pkgs', None)
 new = __salt__['pkg.list_pkgs']()
 return salt.utils.compare_dicts(old, new)

def deinstall ( name ) : portpath = _check_portname ( name ) old = __salt__ [ 'pkg.list_pkgs' ] ( ) result = __salt__ [ 'cmd.run_all' ] ( [ 'make' , 'deinstall' , 'BATCH=yes' ] , cwd = portpath , python_shell = False ) __context__ . pop ( 'pkg.list_pkgs' , None ) new = __salt__ [ 'pkg.list_pkgs' ] ( ) return salt . utils . compare_dicts ( old , new )
de-install a port .