diff -Naru esearch-0.7.1/esearch.py esearch-0.7.1-fix/esearch.py --- esearch-0.7.1/esearch.py 2006-06-07 22:00:18.055018600 +0200 +++ esearch-0.7.1-fix/esearch.py 2006-06-07 22:07:19.016022800 +0200 @@ -81,17 +81,17 @@ for file in list: if file[-7:] == ".ebuild": pv = file[:-7] - pkgs.append(pkgsplit(pv)) + pkgs.append([pkgsplit(pv)]) pkgs[-1].append(path + "/" + file) if searchdef != "" and pv == searchdef: - defebuild = (searchdef, pkgs[-1][3]) - pkgs.sort(pkgcmp) + defebuild = (searchdef, pkgs[-1][1]) + #pkgs.sort(pkgcmp) for pkg in pkgs: rev = "" - if pkg[2] != "r0": - rev = "-" + pkg[2] - output.append(" " + rep + " [" + bold(str(nr)) + "] " + pkg[0] + "-" + pkg[1] + rev + "\n") - ebuilds.append(pkg[3]) + if pkg[0][2] != "r0": + rev = "-" + pkg[0][2] + output.append(" " + rep + " [" + bold(str(nr)) + "] " + pkg[0][0] + "-" + pkg[0][1] + rev + "\n") + ebuilds.append(pkg[0][1]) nr += 1 NORMAL = 1