<div>On an amd64 machine wouldn't it be simpler to just filter out all i386 packages that have an amd64 version? This way any packages that only exist in i386 form would be returned.</div><div><br></div><div>Andy</div>
<br><div class="gmail_quote">On 13 September 2010 10:52, Anders F Björklund <span dir="ltr"><<a href="mailto:afb@algonet.se">afb@algonet.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Richard Hughes wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
At the moment, we define the 'native' filter as "only return packages<br>
in the computer native architecture" -- this ensures that users don't<br>
"find" i386 packages on x64 and download a *ton* of library deps just<br>
to install them.<br>
<br>
This resulted in a RHEL bug, where users on x64 were searching for<br>
acroread and the binary flash player and getting no results. It was<br>
suggested we change the semantics to be: "only return packages in the<br>
computer native architecture when a native architecture package<br>
exists"<br>
</blockquote>
<br></div>
Like: if the arch ("native") filter doesn't return any results, then<br>
try again and refilter using some other ad-hoc criteria instead... ?<br>
<br>
def _samearch(self, arch1, arch2):<br>
if arch1 == arch2:<br>
return True<br>
if arch1 == 'noarch' or arch2 == 'noarch':<br>
return True<br>
x86 = re.compile(r'i[3456]86')<br>
if x86.search(arch1) and x86.search(arch2):<br>
return True<br>
# <--- new custom logic would go here<br>
return False<br>
<br>
<br>
Would this be done on the frontend/client, or is it something for<br>
backends to worry about. Does it apply to other searches as well ?<br>
<br>
"No free software found, trying with non-free too". (and so on)<br>
<br>
<br>
It's doable when package names match. It's worse when they don't.<br>
(that would be for the "native architecture package exist" thing)<br>
<br>
Some packages are renamed, like with a "32" or "64" suffix or so.<br>
So it would need some heuristics like that, for the extra search.<br><font color="#888888">
<br>
--anders</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
PackageKit mailing list<br>
<a href="mailto:PackageKit@lists.freedesktop.org" target="_blank">PackageKit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/packagekit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/packagekit</a><br>
</div></div></blockquote></div><br>