On Thu, May 13, 2010 at 06:53:28PM -0500, Shawn Walker wrote: > On 05/13/10 06:15 PM, johan...@opensolaris.org wrote: > ... > >I'm willing to find a compromise. I think that by default mirrors > >should be able to run without a cfg_cache. Would you agree to enabling > >publisher/0 for mirrors if the a) depot is started with --set-property > >publisher.prefix=<something> or b) depot is started with --cfg-file? > > > >I would also need to change the RespositoryConfig object to allow itself > >to be created without a pathname. That way we get the repository > >defaults, but don't try to write the file out to disk. If we're started > >in mirror mode without --cfg-file, we'd load a RepositoryConfig that > >way. > > > >Does this sound like an acceptable solution to you? > > I prefer a more generic approach. If the cfg_cache file doesn't > exist today, the repositoryconfig sets up some initial defaults. > Only required properties don't automatically get one (at the moment, > that's only publisher prefix). > > If the cfg_cache file is present, it should be used. I don't have > any desire to cater to poorly administered repositories. > > I don't like the idea of requiring --cfg-file as that goes against > its intended purpose and introduces incosistency in the interface.
I think you still don't understand my use case. Say that you've got a depot and a mDNS depot on a machine. The depot is configured in the standard location, and the mDNS depot is configured to mirror the contents of /var/pkg/download. By default the mDNS depot will end up looking for a config file, and find the one that's being used by the standard depot. That's obviously not desireable; I'd like it to be possible to stand up one of these mirrors with the minimum amount of fuss. They don't actually need a config file, but could use one if desired. The problem here isn't administrator laziness, so much as it ease of setup and possible problems with sharing the filesystem. I want something that can serve file content out of the download directory, without a lot of bells and whistles. I'm only suggesting that we require cfg-file for mirrors, if the admin wants publisher/0 support and no publisher prefix was specified on the command line. -j _______________________________________________ pkg-discuss mailing list pkg-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/pkg-discuss