[email protected] wrote:
For the case where the package is installed, the desire would be to
use the icon from the local path, so you need the path value in that
case.
If you're delivering the icon as part of a package, all the other files
in that package are identified by hash. The hash helps the installer
determine whether the content of a file has changed. It won't
re-download files that are the same between one build and another.
Put another way, if you reference the icon by name in pkg.icon when the
user is just browsing packages, then there's no way to know if you need
to retrieve an updated icon or not.
If you reference the icon by hash in pkg.icon, then you can be
guaranteed that you will always be getting the most up-to-date icon.
If you need a method exposed in the client api to more easily obtain a
file's name by its hash, file an RFE.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss