Patch:
--- old/src/web/en/catalog.shtml Tue Sep 6 17:24:32 2011
+++ new/src/web/en/catalog.shtml Tue Sep 6 17:24:32 2011
@@ -123,7 +123,7 @@
flist = []
if selected_val and selected_match:
ver = selected_match
- pattern = "*,%s-%s" % (ver.build_release, ver.branch)
+ pattern = "*,%s-%s.*" % (ver.build_release, ver.branch)
flist, unmatched = catalog.get_matching_version_fmris(pattern)
else:
flist = [f for f in catalog.fmris()]
Bug:
18862web package catalog version matching fails to list all valid packages
I tested this by comparing the packages listed for a 173 repo when browsed
through the BUI
(found by taking the source of the webpage then applying this transformation:
grep "info" catalog.shtml.htm | cut -f 2 -d '>' | cut -f 1 -d'<'> catalog.list
)
with the output of this pkg list command:
pkg list -af -g /tank/repo-173/repo/repo/ |grep '173' | cut -f 1 -d ' '
The same packages, in the same order, were listed. I also checked the BUI
output of a 151a repo with the
output of pkg list (this time just comparing the number of packages) and found
that the BUI produced the same
number of packages as pkg list -af -g /tank/repo-151a/repo/ | grep "151.0.1" |
wc -l.
I'm happy to do more testing if people have specific tests they'd like to see.
Thanks,
Brock
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss