On 08/20/13 09:07 AM, Yiteng Zhang wrote:I will check the "pkg contents -m" first. Also, since there is a new changeset updated this afternoon, I need to fix some failures from the test scripts. Thanks.
To omit the build_release of the FMRI displays, I have modified the
output of some of the pkg utilities command:
Command Changed?(Y or N) Detail
pkglint displays full FMRIs frequently throughout, eg:
$ pkg contents -m core-os > core-os.mf
$ pkglint -v core-os.mf
Typically, it uses the __str__ method of PkgFmri, so I'm not sure what the best approach is. Certainly changing pkglint to call <PkgFmri>.get_fmri(include_build=False) would work, but that's a significant amount of work throughout its codebase.
pkglint also uses build_release in the (rarely used) "version.pattern" property in /usr/share/lib/pkg/pkglintrc.
Skipping pkglint until build_release goes away is probably a better option, but it depends on how strongly we want this to go away (personally, I'm not too bothered about it)
[pkg-discuss] Re: Review 16851082 - build_release (aka build version) should not be displayed