def _reverse_cmp_pkg_versions(pkg1, pkg2):
 if (LooseVersion(pkg1) > LooseVersion(pkg2)):
  return 1
 else:
  return (-1)

def _reverse_cmp_pkg_versions ( pkg1 , pkg2 ) : if ( LooseVersion ( pkg1 ) > LooseVersion ( pkg2 ) ) : return 1 else : return ( - 1 )
compare software package versions .