Red Hat Bugzilla – Bug 444758
noarch packages are not found by exact name search
Last modified: 2008-06-26 16:22:47 EDT
Description of problem:
Some packages will not be found when you search for their name in the package
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Log into RHN
2. Click on package search in the top search bar or navigate to the product
search page (/rhn/channels/software/Search.do)
3. Search for "gnome-user-docs" (or "m17n-db-telugu", or probably a lot of
others I don't know about)
Search returns No Packages.
Search finds package
These packages were discovered by searching for various packages that returned
from the SQL search in bug 222405
Hokay, so upon looking into this a bit more it appears to only happens to noarch
packages when doing an exact name search.
At least I think it's only noarch packages, all the packages i've found so far
that exhibit this behavior are noarch. And the search only doesn't work for
exact name searches, if you leave a word off the front or back of the package
search it suddenly becomes findable.
First - please regression-test, using the test plan for
Second - use the reproducer above.
Verified in Dev
So it turned out that this doesn't have anything to do with noarch packages at
all, except that most packages that have two '-'s in their name are noarch. The
search regex was expecting all package searches with two '-'s to be in the
name-version-arch format, and so wasn't finding packages in the
name1-name2-name3 format. S'been fixed.
*** Bug 450824 has been marked as a duplicate of this bug. ***
verified in qa