Dan Price wrote:
I don't think you really answered either of my questions.

I just spoke with Danek on this. What's there (code in
solaris.py) at the moment isn't correct. It should be the
following (Danek please correct me if I get this wrong):

* If an IPS package definition file has a

 summary "this is a package summary"

 line, it should add the following two lines to the IPS package manifest:

 set name=description value="this is a package summary"
 set name=pkg.summary value="this is a package summary"

 If there is no "summary" line, then it'll look for a NAME field
 in the SVR4 package manifest, and set those two lines based
 on its value.

* If an IPS package definition file has a

description "this is a much longer line ... giving a detailed package description"

 line, it should add the following line to the IPS package manifest:

set name=pkg.description value="this is a much longer line ... giving a detailed package description"

 If there is no "description" line, then it'll look for a DESC field
 in the SVR4 package manifest, and set that line based
 on its value.

I've opened bug #9473 on this, and will generate a fix ASAP.

1) What metadata should be in entire?
        Just description?
     OR Both description and pkg.summary?
     OR Just pkg.summary?

Assuming the fix for bug #9473 has been integrated, then if you
just want a short summary for entire, then you should have a
summary line. If you want both a short summary and a long description,
then your IPS package definition file should have both a summary line
and a description line. And so on...

2) We're saying that 'pkg list -s' uses description and not
   pkg.summary?   Why shouldn't we do the same algorithm in list -s
   as you do in the API?  Or was this an oversight, and needs fixing?

With the proposed changes for bug #9473, then "pkg -s" will
print out the pkg.summary (aka the "description"). Currently
there isn't a pkg list option to print out the pkg.description.


_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to