On 9 Dec 2008, at 15:04, Rich Burridge wrote:

> Chris Ridd wrote:
>> Does anything special need doing to pkg.depotd or packagemanager  
>> in  101rc2, to make them understand info.classification values?
>>
>> I updated my repo this morning with a package that has the same   
>> classification as SUNWcvs:
>>
>> set name=info.classification value="org.opensolaris.category.  
>> 2008:Development/Source Code Management"
>>
>> When the package manager GUI browses "Source Code Management" in  
>> the  opensolaris.org repo, it sees SUNWcvs. But when it browses  
>> that  category in my repo, it doesn't see my package.
>>
>> What am I missing?
>>
> Unfortunately the Package Manager has it's classifications hard-wired.

It is OK (ish) to hard-wire the category names.

> These are installed under /usr/share/package-manager/data. Under there
> are currently two files called opensolaris.org.sections and  
> opensolaris.org.
> I don't know if it correctly handles classifications if you're  
> preferred
> repository isn't opensolaris.org. Hopefully John or Michal can  
> answer that.

I think you're suggesting that the package manager GUI ignores the  
package's metadata, and uses these static files instead...

> (An interesting experiment would be to copy those two files to similar
> names for your local repository).

Ah, that made a difference. If I add an entry for my package to that / 
usr/share/package-manager/data/canopus (canopus is my name for the  
authority) the package manager GUI displays the package in the right  
section.

Oh dear. There's a bug for this?

> But does the correct classification show up with pkg? Try the  
> following:
>
> $ pfexec pkg set-authority -P -O http://<my-repository>:<my-port #>  
> my-repository
> $ pfexec pkg info SUNWcvs
>         Name: SUNWcvs
>      Summary: The CVS version control system
>     Category: Development/Source Code Management
>        State: Installed
>    Authority: osol-re
>      Version: 1.12.13
> Build Release: 5.11
>       Branch: 0.101
> Packaging Date: Wed Nov 19 22:00:02 2008
>         Size: 1.16 MB
>         FMRI: pkg://osol-re/ 
> [EMAIL PROTECTED],5.11-0.101:20081119T220002Z

Yes, the correct Category is displayed for my installed package.

Cheers,

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

Reply via email to