I think this is a great idea.  This relates to Tim's work on SMF manifests
as well as to the attributes we already put on ELF files (elfbits and
elfarch, and elfhash) during publication.  Having more per-file searchable
metadata is generally a good thing, and fonts are certainly something that
could stand to be found a bit more easily.

I'd suggest creating a namespace under "info":

    info.file.ttf.xlfd="-bitstream-bitstream vera sans 
mono-bold-r-normal--0-0-0-0-m-0-iso10646-1"
    info.file.ttf.name="Bitstream Vera Sans Mono Bold"

and maybe we could rename the ELF attributes, too:

    info.file.elf.arch=i386
    info.file.elf.bits=32

These would be attached to the files they deliver, of course.  We'd need
some special code to handle indexing these special attributes, but I think
that would be reasonably easy.

I think that adding these attributes by the repository code at publication
time might be better than adding them as a separate stage on the client,
but you could certainly start by doing it on the client until we write the
appropriate server-side code.

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

Reply via email to