def refresh_db(full=False):
 if full:
  return (__salt__['cmd.retcode']('/bin/pkg refresh --full') == 0)
 else:
  return (__salt__['cmd.retcode']('/bin/pkg refresh') == 0)

def refresh_db ( full = False ) : if full : return ( __salt__ [ 'cmd.retcode' ] ( '/bin/pkg refresh --full' ) == 0 ) else : return ( __salt__ [ 'cmd.retcode' ] ( '/bin/pkg refresh' ) == 0 )
refresh packagesite contents .