Shawn Walker wrote: > Ideally, what would happen is that contents -r manifest retrieval > would never be done into /var/pkg. That's arguably a separate bug, > so I would be ok with not fixing the contents case as part of this > one. > > We do this already in the case that a user can't write to /var/pkg > due to permissions so that unprivileged users can use 'info', > 'list', etc.
It would, however, be very nice to cache these requests. Since we know from the catalog what a manifest's sha-1 hash should be, we could simply store them by hash, something we've talked about doing before, anyway. This way, if the manifest changes, it doesn't matter, as the hash will be different. Stretching even further, that would allow us to have a shared directory for unprivileged users to cache manifests. You'd have to read the files to be sure they actually hash to what they say they do, and you'd have to be careful about symlinks and such, but it could be a useful little feature if written properly. Danek _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
