Hi all, I'm looking for a review of the fix for bug #4944:
http://defect.opensolaris.org/bz/show_bug.cgi?id=4944 Some of the "latest" packages in the pkg.opensolaris.org repo aren't classified. Webrev is at: http://cr.opensolaris.org/~richb/pkg-4944-v1/ This "fix" introduces another new script/tool under the distro-import directory called check_classifications.py It's used to check that the package classifications of all the "latest" packages in the current authority are valid. Usage: $ cd .../gate/src/util/distro-import $ python check_classifications.py > classification_report.txt Note that this script is intentionally slow. It does an initial: $ pfexec pkg list -a to get a list of all the "latest" packages in the current authority. Then for each one, it'll do: $ pfexec pkg info -r <package_name> and extract out the "Category:" and "Size:" lines. It then performs the following checks: 1/ If it's not a valid category or sub_category it flags it. 2/ If the package has no "Category:" line and it's not empty, then it flags it. 3/ If the package has a "Category:" line and it's empty, then it flags it. Flagged output lines start with "***". If you want to check the classifications for a repository that is not the current authority, then you would need to do: $ pfexec pkg set-authority -P -O http://new.authority.org new-authority $ python check_classifications.py > classification_output.txt $ pfexec pkg set-authority -P old-authority $ pfexec pkg unset-authority new-authority It's a low-risk "fix" as it's not going to be included as part of OpenSolaris 2008.11; it's just a useful tool to have around to help ensure that we have valid package classifications. Thanks. _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
