def _ips_get_pkgname(line):
 return line.split()[0].split('@')[0].strip()

def _ips_get_pkgname ( line ) : return line . split ( ) [ 0 ] . split ( '@' ) [ 0 ] . strip ( )
extracts package name from "pkg list -v" output .